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

Refactor ClassLoaderData::remove_handle to use the Access API

    Details

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

      Description

      The ClassLoaderData::remove_handle() member function currently uses explicit G1 SATB barriers to remove an oop from the root set, as these handles are not necessarily walked by the GC in a safepoint. Therefore G1 needs pre-write barriers.

      This should now be modelled as a RootAccess<IN_CONCURRENT_ROOT>::oop_store instead. This maps to performing a pre-write SATB barrier with G1, but other GCs are free to do other things as necessary.

        Attachments

          Activity

            People

            • Assignee:
              eosterlund Erik Ă–sterlund
              Reporter:
              eosterlund Erik Ă–sterlund
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: