JEP 516 allows enabling archived objects from CDS in non-G1 GC. When this is enabled, for example when running with ZGC, we see significant (up to 34%) regressions in microbenchmarks testing System.gc() on mostly empty heaps:
org.openjdk.bench.vm.gc.systemgc.NoObjects
org.openjdk.bench.vm.gc.systemgc.AllDead
org.openjdk.bench.vm.gc.systemgc.NoObjects
org.openjdk.bench.vm.gc.systemgc.AllDead
- relates to
-
JDK-8365932 Implementation of JEP 516: Ahead-of-Time Object Caching with Any GC
-
- Resolved
-