Currently CDS Archived Heap is supported only for G1. Maybe it makes sense to support other types of GCs by copying the archived objects into the runtime Java heap. Currently, with the default archive we have less than 1MB of archived objects, and copying them will be faster than the alternative (running full module initialization).
We can impose a limit if there are too many archived objects (e.g., when extra string objects are dumped).
We can impose a limit if there are too many archived objects (e.g., when extra string objects are dumped).