8370663: Incorrect synchronization in nsk/jvmti/RedefineClasses when expected events are not received

Reviewed-by: sspitsyn
This commit is contained in:
Leonid Mesnik 2025-10-31 23:33:49 +00:00
parent ec059c0e85
commit 2fc4cbe426
3 changed files with 3 additions and 6 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2004, 2024, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2004, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -176,7 +176,6 @@ agentProc(jvmtiEnv* jvmti_env, JNIEnv* jni_env, void* arg) {
printf("WARNING: CompiledMethodLoad event is still not received for \"%s\" after %d attempts\n"
"\tThe test has no results\n\n",
expHSMethod, MAX_ATTEMPTS);
nsk_jvmti_resumeSync();
exit(95 + PASSED);
}
} while (fire == 0);

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2004, 2024, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2004, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -175,7 +175,6 @@ agentProc(jvmtiEnv* jvmti_env, JNIEnv* jni_env, void* arg) {
printf("WARNING: CompiledMethodLoad event is still not received for \"%s\" after %d attempts\n"
"\tThe test has no results\n\n",
expHSMethod, MAX_ATTEMPTS);
nsk_jvmti_resumeSync();
exit(95 + PASSED);
}
} while (fire == 0);

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2004, 2024, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2004, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -176,7 +176,6 @@ agentProc(jvmtiEnv* jvmti_env, JNIEnv* jni_env, void* arg) {
printf("WARNING: CompiledMethodLoad event is still not received for \"%s\" after %d attempts\n"
"\tThe test has no results\n\n",
expHSMethod, MAX_ATTEMPTS);
nsk_jvmti_resumeSync();
exit(95 + PASSED);
}
} while (fire == 0);