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

Race in field updates when creating ArrayKlasses can lead to crash

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • P2
    • Resolution: Fixed
    • 8, 9
    • 10
    • hotspot
    • b21
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: