Current CDS archive ships multiple bitmaps. Archival/loading code makes a useful optimization: it truncates the bitmaps at the beginning when it is known the prefix contains many zeroes. The object sorting code additionally sorts the pointer-rich objects at the end of the archive, increasing the zero-prefix length.
This optimization works less efficiently afterJDK-8338912, which moved the (pointer-rich) roots array at the beginning of the archive. We need to enhance current bitmap handling mechanism to truncate bitmaps better.
This optimization works less efficiently after
- relates to
-
JDK-8340516 CDS: Create a regression test for bitmap density
-
- Open
-
-
JDK-8338912 CDS: Segmented roots array
-
- Resolved
-
- links to
-
Commit(master) openjdk/jdk/f31f97dd
-
Review(master) openjdk/jdk/21010