In any case we should look at whether the JNI-related VM initialization states (NOT_CREATED, IN_PROGRESS, COMPLETED) should be expanded to give more fine grain control that can be used to guard use of other JNI functions like attach/detach.
It was also suggested that we might consider blocking such functions if VM init is in progress rather than returning an error. Though I suspect that could lead to initialization deadlocks.
- relates to
-
JDK-8308341 JNI_GetCreatedJavaVMs returns a partially initialized JVM
-
- Resolved
-
-
JDK-8309171 Test vmTestbase/nsk/jvmti/scenarios/jni_interception/JI05/ji05t001/TestDescription.java fails after JDK-8308341
-
- Closed
-