JDK-8261608 : Move common CDS archive building code to archiveBuilder.cpp
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-02-11
  • Updated: 2021-02-18
  • Resolved: 2021-02-15
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 17
17 b10Fixed
Related Reports
Relates :  
Description
This is a follow-up to JDK-8250989:

- Move common code for writing the CDS archive from metaspaceShared.cpp to archiveBuilder.cpp

- Data structures related to dumping were haphazardly organized in several classes (e.g., DumpRegions). We needed various APIs to access them across classes. These should be consolidated in archiveBuilder.cpp and the API should be cleaned up

- Detailed stats (DumpAllocStats::print_stats) were available only for static dump. Refactor the code so they are also printed for dynamic dump

Comments
Changeset: d9744f65 Author: Ioi Lam <iklam@openjdk.org> Date: 2021-02-15 06:37:39 +0000 URL: https://git.openjdk.java.net/jdk/commit/d9744f65
15-02-2021