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

Obsolete unused UseOprofile flag on BSD

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P4 P4
    • 16
    • hotspot
    • None
    • behavioral
    • minimal
    • The flag is unused so there is no affect on code. A warning will be issued if the flag is used in JDK 16.
    • add/remove/modify command line option
    • Implementation

      Summary

      Obsolete the unused UseOprofile flag.

      Problem

      The UseOprofile flag was copied from Linux when the macOS port was done, but is actually unused on macOS/BSD.

      Solution

      Obsolete the UseOprofile flag in JDK 16 and expire it in JDK 17.

      Specification

      Remove the flag definition from src/hotspot/os/bsd/globals_bsd.hpp:

      -  product(bool, UseOprofile, false                                                       \
      -          "enable support for Oprofile profiler")                                        \

      Add the flag to the obsoletion section of the special flag table:

      +  { "UseOprofile",          JDK_Version::undefined(), JDK_Version::jdk(16), JDK_Version::jdk(17) },

            dholmes David Holmes
            dholmes David Holmes
            Daniel Daugherty, Mikael Vidstedt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: