Some serviceability tests crash with
# assert(_instance != nullptr) failed: cannot enqueue events before the service thread runs
#
# JRE version: (24.0) (fastdebug build )
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 24-internal-2024-10-21-0638463.ekaterina.pavlova.leyden.483-candidate, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
# Problematic frame:
# V [libjvm.so+0x14b62d8] ServiceThread::enqueue_deferred_event(JvmtiDeferredEvent*)+0xb4
#
when running with AOT cache and -XX:+AOTClassLinking
The liste of failed tests:
vmTestbase/nsk/jvmti/scenarios/multienv/MA10/ma10t006/TestDescription.java
vmTestbase/nsk/jvmti/RedefineClasses/redefclass028/TestDescription.java
vmTestbase/nsk/jvmti/RedefineClasses/redefclass029/TestDescription.java
vmTestbase/nsk/jvmti/RedefineClasses/redefclass030/TestDescription.java
vmTestbase/nsk/jvmti/CompiledMethodLoad/compmethload001/TestDescription.java
Steps to reproduce:
> TESTED_JAVA/bin/java -XX:AOTMode=create -XX:AOTConfiguration=TESTED_JAVA/lib/classlist -XX:+AOTClassLinking -XX:AOTCache=app.aot
> jib.sh make -- run-test TEST="vmTestbase/nsk/jvmti/CompiledMethodLoad/compmethload001/TestDescription.java"
TEST_VM_OPTS="-XX:AOTCache=FULL_PATH/app.aot"
No crash in case AOTClassLinking is disabled during the cache creation.
# assert(_instance != nullptr) failed: cannot enqueue events before the service thread runs
#
# JRE version: (24.0) (fastdebug build )
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 24-internal-2024-10-21-0638463.ekaterina.pavlova.leyden.483-candidate, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
# Problematic frame:
# V [libjvm.so+0x14b62d8] ServiceThread::enqueue_deferred_event(JvmtiDeferredEvent*)+0xb4
#
when running with AOT cache and -XX:+AOTClassLinking
The liste of failed tests:
vmTestbase/nsk/jvmti/scenarios/multienv/MA10/ma10t006/TestDescription.java
vmTestbase/nsk/jvmti/RedefineClasses/redefclass028/TestDescription.java
vmTestbase/nsk/jvmti/RedefineClasses/redefclass029/TestDescription.java
vmTestbase/nsk/jvmti/RedefineClasses/redefclass030/TestDescription.java
vmTestbase/nsk/jvmti/CompiledMethodLoad/compmethload001/TestDescription.java
Steps to reproduce:
> TESTED_JAVA/bin/java -XX:AOTMode=create -XX:AOTConfiguration=TESTED_JAVA/lib/classlist -XX:+AOTClassLinking -XX:AOTCache=app.aot
> jib.sh make -- run-test TEST="vmTestbase/nsk/jvmti/CompiledMethodLoad/compmethload001/TestDescription.java"
TEST_VM_OPTS="-XX:AOTCache=FULL_PATH/app.aot"
No crash in case AOTClassLinking is disabled during the cache creation.