Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8369989

Implementation of JEP 516: Ahead-of-Time Object Caching with Any GC

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • hotspot
    • None

      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.

            eosterlund Erik Ă–sterlund
            eosterlund Erik Ă–sterlund
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: