-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
P4
-
None
-
Affects Version/s: 26
-
Component/s: core-libs
-
None
The new test java/foreign/sharedclosejvmti/TestSharedCloseJvmti.java fails when running without CDS:
make run-test TEST=test/jdk/java/foreign/sharedclosejvmti/TestSharedCloseJvmti.java JTREG="VM_OPTIONS=-Xshare:off"
STDERR:
[14:00:40.711] STARTED TestSharedCloseJvmti::eventDuringScopedAccess 'eventDuringScopedAccess()'
[fork] Exception in thread "main" java.lang.NoClassDefFoundError: TestSharedCloseJvmti$EventDuringScopedAccessRunner
stdout: [FATAL ERROR in native method: Wrong object class or methodID passed to JNI call
jni_env->FindClass(TARGET_CLASS_NAME) returns nullptr because of NoClassDefFoundError while trying to find "TestSharedCloseJvmti$EventDuringScopedAccessRunner". That's why MAIN_CLS and TARGET_ID don't get initialized in `start`.
make run-test TEST=test/jdk/java/foreign/sharedclosejvmti/TestSharedCloseJvmti.java JTREG="VM_OPTIONS=-Xshare:off"
STDERR:
[14:00:40.711] STARTED TestSharedCloseJvmti::eventDuringScopedAccess 'eventDuringScopedAccess()'
[fork] Exception in thread "main" java.lang.NoClassDefFoundError: TestSharedCloseJvmti$EventDuringScopedAccessRunner
stdout: [FATAL ERROR in native method: Wrong object class or methodID passed to JNI call
jni_env->FindClass(TARGET_CLASS_NAME) returns nullptr because of NoClassDefFoundError while trying to find "TestSharedCloseJvmti$EventDuringScopedAccessRunner". That's why MAIN_CLS and TARGET_ID don't get initialized in `start`.
- duplicates
-
JDK-8371340 [AIX] Wrong object class or methodID passed to JNI call in TestSharedCloseJvmti
-
- Closed
-
- relates to
-
JDK-8370344 Arbitrary Java frames on stack during scoped access
-
- Resolved
-
- links to
-
Review(master)
openjdk/jdk/28202