VM doesn't dump Java class mirror objects unless they are part of root set or referenced from other Java objects. It means that for most classes their mirrors are absent in a heap dump. Since mirror object contains reference fields, its referents are shown as dangling objects (no incoming refs).
- relates to
-
JDK-8186777 Make Klass::_java_mirror an OopHandle
- Resolved
-
JDK-8081323 ConstantPool::_resolved_references is missing in heap dump
- Resolved