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

Race in macOS os::processor_id()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 14
    • None
    • hotspot
    • None
    • b25

      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.

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

              Created:
              Updated:
              Resolved: