ArchiveBuilder::estimate_archive_size() tries to estimate an upper limit of the archive's size, and allocate a virtual space up to this size.
The estimate is getting more difficult as more features are being added to CDS.
The virtual space is incrementally committed as contents are written. So it doesn't matter if we reserve a little too much.
We can just reserve CompressedClassSpaceSize, as the CDS archive will be put inside the CCS.
The estimate is getting more difficult as more features are being added to CDS.
The virtual space is incrementally committed as contents are written. So it doesn't matter if we reserve a little too much.
We can just reserve CompressedClassSpaceSize, as the CDS archive will be put inside the CCS.
- links to
-
Commit(master) openjdk/jdk/254e840d
-
Review(master) openjdk/jdk/21931