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

Obsolete unused UseOprofile flag on BSD

    XMLWordPrintable

    Details

    • Type: CSR
    • Status: Closed
    • Priority: P4
    • Resolution: Approved
    • Fix Version/s: 16
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Compatibility Kind:
      behavioral
    • Compatibility Risk:
      minimal
    • Compatibility Risk Description:
      The flag is unused so there is no affect on code. A warning will be issued if the flag is used in JDK 16.
    • Interface Kind:
      add/remove/modify command line option
    • Scope:
      Implementation

      Description

      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) },

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: