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

Lock ClassLoaderDataGraph

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 12
    • Fix Version/s: 12
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b10

      Description

      Add lock to ClassLoaderDataGraph in preparation for concurrent class unloading.

      New entries in the singly linked list ClassLoaderDataGraph are added via CAS. There is no performance reason to do this. It was done to be careful about safepointing while installing ClassLoaderData, but GC will find the CLD through the class loader oop.

      There is various CLDG walking through the VM which now need to either take the lock or be at a safepoint.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              coleenp Coleen Phillimore
              Reporter:
              coleenp Coleen Phillimore
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: