AOT cache created with "XX:+AOTClassLinking -XX:-AOTInvokeDynamicLinking " crashes with
# guarantee(succeed) failed: All cached hidden classes must be aot-linkable
#
# JRE version: Java(TM) SE Runtime Environment (25.0) (fastdebug build 25-internal-LTS-2025-01-21-1855105.katya...)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 25-internal-LTS-2025-01-21-1855105.katya..., interpreted mode, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# V [libjvm.so+0x5e19fc] AOTArtifactFinder::add_cached_instance_class(InstanceKlass*)+0x27c
#
Steps to reproduce
> jdk25/fastdebug/bin/java -XX:+AOTClassLinking -XX:-AOTInvokeDynamicLinking -XX:AOTMode=record -XX:AOTConfiguration=jdk.aotconf -version
> jdk25/fastdebug/bin/java -XX:+AOTClassLinking -XX:-AOTInvokeDynamicLinking -XX:AOTMode=create -XX:AOTConfiguration=jdk.aotconf -XX:AOTCache=jdk.aotcache
# guarantee(succeed) failed: All cached hidden classes must be aot-linkable
#
# JRE version: Java(TM) SE Runtime Environment (25.0) (fastdebug build 25-internal-LTS-2025-01-21-1855105.katya...)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 25-internal-LTS-2025-01-21-1855105.katya..., interpreted mode, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# V [libjvm.so+0x5e19fc] AOTArtifactFinder::add_cached_instance_class(InstanceKlass*)+0x27c
#
Steps to reproduce
> jdk25/fastdebug/bin/java -XX:+AOTClassLinking -XX:-AOTInvokeDynamicLinking -XX:AOTMode=record -XX:AOTConfiguration=jdk.aotconf -version
> jdk25/fastdebug/bin/java -XX:+AOTClassLinking -XX:-AOTInvokeDynamicLinking -XX:AOTMode=create -XX:AOTConfiguration=jdk.aotconf -XX:AOTCache=jdk.aotcache
- causes
-
JDK-8351115 Test AOTClassLinkingVMOptions.java fails after JDK-8348322
-
- Resolved
-
- links to
-
Commit(master) openjdk/jdk/c4b516df
-
Review(master) openjdk/jdk/23546