https://bugs.openjdk.java.net/browse/JDK-8230674
http://cr.openjdk.java.net/~iklam/jdk14/8230674-heap-dump-exclude-dormant-oops.v01

Please review this small fix:

When CDS is in use, archived objects are memory-mapped into the heap (currently
G1GC only). These objects are partitioned into "subgraphs". Some of these
subgraphs may not be loaded (e.g., those related to jdk.internal.math.FDBigInteger)
at the time a heap dump is requested.

When a subgraph is not loaded, some of the objects in this subgraph may belong to
a class that's not yet loaded.

The bug happens when such an "dormant" object is dumped, but its class
is not dumped because the class is not in the system dictionary.

There is already code in DumperSupport::dump_instance() that tries to handle
dormant objects, but it needs to be extended to cover arrays, as well as and
references from non-dormant object/arrays to dormant ones.


Thanks
- Ioi

Reply via email to