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

Have instanceRefKlass use HeapAccess when loading the referent

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 11
    • Fix Version/s: 11
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
      gc
    • Resolved In Build:
      b18

      Backports

        Description

        To support concurrent reference processing in ZGC, instanceRefKlass::try_discover() can no longer use RawAccess to load the referent field. Instead it should use

          HeapAccess<ON_PHANTOM_OOP_REF | AS_NO_KEEPALIVE>

        or

          HeapAccess<ON_WEAK_OOP_REF | AS_NO_KEEPALIVE>

        depending on the reference type.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                pliden Per Liden
                Reporter:
                pliden Per Liden
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: