When run with -XX:+UseZGC -Xmx2g -XX:ZCollectionInterval=0.01, the test
vmTestbase/nsk/jvmti/scenarios/allocation/AP01/ap01t001/TestDescription.java
intermittently fails with:
nsk.share.Fake_Exception_for_RULE_Creation: (ap01t001.cpp:67) Received unexpected number of ObjectFree events: 7
at nsk_lvcomplain(nsk_tools.cpp:172)
# ERROR: ap01t001.cpp, 67: Received unexpected number of ObjectFree events: 7
expected number: 6
This looks like the ObjectFree event for the main class is posted before the VMDeath event is posted, which seems like it should be ok. The other events are the array of the main class.
void JNICALL
VMDeath(jvmtiEnv *jvmti_env, JNIEnv *env) {
NSK_DISPLAY0("VMDeath event received\n");
if (obj_free != (EXP_OBJ_NUMBER - 1)) {
NSK_COMPLAIN2(
"Received unexpected number of ObjectFree events: %d\n"
"\texpected number: %d\n",
obj_free, (EXP_OBJ_NUMBER - 1));
exit(95 + STATUS_FAILED);
}
exit(95 + PASSED);
}
vmTestbase/nsk/jvmti/scenarios/allocation/AP01/ap01t001/TestDescription.java
intermittently fails with:
nsk.share.Fake_Exception_for_RULE_Creation: (ap01t001.cpp:67) Received unexpected number of ObjectFree events: 7
at nsk_lvcomplain(nsk_tools.cpp:172)
# ERROR: ap01t001.cpp, 67: Received unexpected number of ObjectFree events: 7
expected number: 6
This looks like the ObjectFree event for the main class is posted before the VMDeath event is posted, which seems like it should be ok. The other events are the array of the main class.
void JNICALL
VMDeath(jvmtiEnv *jvmti_env, JNIEnv *env) {
NSK_DISPLAY0("VMDeath event received\n");
if (obj_free != (EXP_OBJ_NUMBER - 1)) {
NSK_COMPLAIN2(
"Received unexpected number of ObjectFree events: %d\n"
"\texpected number: %d\n",
obj_free, (EXP_OBJ_NUMBER - 1));
exit(95 + STATUS_FAILED);
}
exit(95 + PASSED);
}
- duplicates
-
JDK-8256337 ap01t001.cpp, 67: Received unexpected number of ObjectFree events: 7
-
- Resolved
-