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

Race in field updates when creating ArrayKlasses can lead to crash

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 8, 9
    • Fix Version/s: 10
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b21
    • Verification:
      Verified

      Description

      Klasses in HotSpot have a pointer to the Java mirror which the compiler considers to be non-null. This means that you should never be able to see the Klass before the _java_mirror has been set. When building ArrayKlasses, cross links are made between the element Class and the array Class. This creates an access to the newly created ArrayKlass before its _java_mirror has been set. If another thread see this value you can get a crash.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                coleenp Coleen Phillimore
                Reporter:
                never Tom Rodriguez
              • Votes:
                0 Vote for this issue
                Watchers:
                12 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: