Before we have a proper fix for JDK-8351778, we should disable the JIT when -XX:+AOTClassLinking is specified when dumping a AOT cache with -XX:AOTMode=create, or when dumping a CDS archive with -Xshare:dump.
This will avoid the situation where the JIT observes inconsistent states due to the reset operations on Java heap objects.
This will avoid the situation where the JIT observes inconsistent states due to the reset operations on Java heap objects.
- links to
-
Review(master) openjdk/jdk/24019