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.
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.
- relates to
-
JDK-8219621 G1 concurrent class unloading is disabled during high class loading activity
-
- Closed
-
-
JDK-8210422 runtime/modules/ModuleStress/ExportModuleStressTest.java - assertion failed: address not aligned: 0x00000008baadbabe
-
- Closed
-