The runtime and JFR code that calls ClassLoaderDataGraph::cld_do() should use the ClassLoaderDataGraphIterator which asserts that the CLDG_lock is taken. The GC code that uses the function should not.
For runtime calls, it should also skip unloaded classes.
For runtime calls, it should also skip unloaded classes.
- relates to
-
JDK-8213107 Make ClassLoaderDataGraph iterator skip unloaded CLDs
-
- Resolved
-
-
JDK-8213150 Add verification for locking by VMThread
-
- Resolved
-