JDK-8210295 : Refactor HeapShared::archive_reachable_objects_from_static_field
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 12
  • Priority: P3
  • Status: Resolved
  • Resolution: Duplicate
  • Submitted: 2018-09-02
  • Updated: 2018-09-03
  • Resolved: 2018-09-03
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 12
12Resolved
Related Reports
Duplicate :  
Relates :  
Description
Currently, the only way to archive an object subgraph is to call HeapShared::archive_reachable_objects_from_static_field, which 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 store subgraphs from other sources, such as objects stored in ConstantPool::resolved_references().

Therefore, we need to refactor archive_reachable_objects_from_static_field to move the functionality independent of static fields into a common function.
Comments
The refactoring will be rolled into JDK-8210289
03-09-2018