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

Race in field updates when creating ArrayKlasses can lead to crash

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 10
    • 8, 9
    • hotspot
    • b21
    • Verified

      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.

            coleenp Coleen Phillimore
            never Tom Rodriguez
            Votes:
            0 Vote for this issue
            Watchers:
            14 Start watching this issue

              Created:
              Updated:
              Resolved: