Summary
Add a product JVM option for the feature of "JEP 516: Ahead-of-Time Object Caching with Any GC", called -XX:AOTStreamableObjects to select wether to use the new GC agnostic format, or not.
Problem
The current object archiving solution of the AOT cache does not support ZGC.
Solution
A new way of archiving objects in the AOT cache that uses streaming of objects on a much more fine grained level was developed and ships with "JEP 516: Ahead-of-Time Object Caching with Any GC".
Specification
A new JVM flag called -XX:AOTStreamableObjects determines whether to archive objects in the old less compatible way, or with the new mechanism which is more compatible. By default, the flag is true iff compressed oops is enabled. However, the option is offered to users to be more explicit using the new proposed JVM flag. This allows evaluating the trade-offs of the two solutions, and picking the one that fits best.
- csr of
-
JDK-8365932 Implementation of JEP 516: Ahead-of-Time Object Caching with Any GC
-
- Open
-