Skip to content

Commit 2fc4cbe

Browse files
committed
8370663: Incorrect synchronization in nsk/jvmti/RedefineClasses when expected events are not received
Reviewed-by: sspitsyn
1 parent ec059c0 commit 2fc4cbe

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

test/hotspot/jtreg/vmTestbase/nsk/jvmti/RedefineClasses/redefclass028/redefclass028.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2004, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2004, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* 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) {
176176
printf("WARNING: CompiledMethodLoad event is still not received for \"%s\" after %d attempts\n"
177177
"\tThe test has no results\n\n",
178178
expHSMethod, MAX_ATTEMPTS);
179-
nsk_jvmti_resumeSync();
180179
exit(95 + PASSED);
181180
}
182181
} while (fire == 0);

test/hotspot/jtreg/vmTestbase/nsk/jvmti/RedefineClasses/redefclass029/redefclass029.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2004, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2004, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* 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) {
175175
printf("WARNING: CompiledMethodLoad event is still not received for \"%s\" after %d attempts\n"
176176
"\tThe test has no results\n\n",
177177
expHSMethod, MAX_ATTEMPTS);
178-
nsk_jvmti_resumeSync();
179178
exit(95 + PASSED);
180179
}
181180
} while (fire == 0);

test/hotspot/jtreg/vmTestbase/nsk/jvmti/RedefineClasses/redefclass030/redefclass030.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2004, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2004, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* 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) {
176176
printf("WARNING: CompiledMethodLoad event is still not received for \"%s\" after %d attempts\n"
177177
"\tThe test has no results\n\n",
178178
expHSMethod, MAX_ATTEMPTS);
179-
nsk_jvmti_resumeSync();
180179
exit(95 + PASSED);
181180
}
182181
} while (fire == 0);

0 commit comments

Comments
 (0)