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

Obsolete unused UseBsdPosixThreadCPUClocks

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 UseBsdPosixThreadCPUClocks flag.

      Problem

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

      Solution

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

      Specification

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

      -                                                                                \
      -  /*  NB: The default value of UseBsdPosixThreadCPUClocks may be  */            \
      -  /*  overridden in Arguments::parse_each_vm_init_arg.            */            \
      -  product(bool, UseBsdPosixThreadCPUClocks, true,                               \
      -          "enable fast Bsd Posix clocks where available")                       \

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

      +  { "UseBsdPosixThreadCPUClocks",          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: