RFR[S] Refactor HeapShared::archive_reachable_objects_from_static_field
ioi.lam at oracle.com
Sun Sep 2 19:35:18 UTC 2018
Currently, the only way to archive an object subgraph is to call
requires the root to be in a static field of a Java class.
To support JDK-8198698 (Archive Lambda classes in CDS), we need to
archive subgraphs from other sources, such as objects stored in
This is intended to be a clean-up only, with no change in functionality.
I moved the common code into a new method
In doing so, I was able to consolidate some code that was duplicated between
archive_reachable_objects_from_static_field and WalkOopAndArchiveClosure.
+ removed some obsolete comments (e.g., "only ArchivedModuleGraph is
+ moved excessive tracing code from Debug to Trace
+ improve the alignment of some logs to make them more readable
More information about the hotspot-runtime-dev