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

Race in macOS os::processor_id()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 14
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b25

      Description

      In os::processor_id() on macOS, a CAS protects initialization of processor ID number given an APIC id. However, the CAS is not converted properly to a boolean determining whether it succeeded or failed. The implicit boolean conversion is wrong, allowing multiple threads to increment the next processor ID. The result is that we can get IDs that are higher than the number of processors.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              eosterlund Erik Ă–sterlund
              Reporter:
              eosterlund Erik Ă–sterlund
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: