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

Lock ClassLoaderDataGraph

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 12
    • 12
    • hotspot
    • None
    • b10

      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.

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

              Created:
              Updated:
              Resolved: