Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8298205

Prefer Member Initialization Lists for JFR classes in os_perf.hpp

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 20
    • None
    • hotspot
    • None
    • jfr
    • b27

      os_perf currently contains several constructors in which variables are initialized in the constructor body, rather than with init lists.

      Init lists are preferred for classes with user provided constructors[1].

      [1] https://stackoverflow.com/questions/926752/why-should-i-prefer-to-use-member-initialization-lists#926795

            tsteele Tyler Steele
            tsteele Tyler Steele
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: