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

Remove dead code from os.hpp|cpp

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 14
    • Fix Version/s: 14
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b20

      Description

      os.hpp has a number of dead and effectively unused methods that could be removed, including but not limited to:

       os::distribute_processes
       os::enable_vtime
       os::vtime_enabled
       os::default_file_open_flags
       os::do_you_want_to_debug (!?)
       os::is_debugger_attached
       SuspendResume::is_suspend_request

      There's also os::bind_to_processor which is only implemented on Solaris and only used by CMS if enabling a diagnostic flag (BindCMSThreadToCPU) which defaults to false, which seems like a reasonable candidate for deprecation and removal.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              redestad Claes Redestad
              Reporter:
              redestad Claes Redestad
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: