8286844: com/sun/jdi/RedefineCrossEvent.java failed with 1 threads completed while VM suspended

Reviewed-by: sspitsyn, cjplummer
This commit is contained in:
Alex Menkov 2022-07-21 18:14:40 +00:00
parent 80bd8c3549
commit 7ec0132ad3

@ -1,5 +1,5 @@
/*
* Copyright (c) 2001, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2001, 2022, 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
@ -66,7 +66,6 @@ public class DebuggerThreadTest extends TestScaffold {
* Move to top ThreadGroup and dump all threads.
*/
public void dumpThreads() {
int finishedThreads = 0;
ThreadGroup tg = Thread.currentThread().getThreadGroup();
ThreadGroup parent = tg.getParent();
while (parent != null) {
@ -82,7 +81,6 @@ public class DebuggerThreadTest extends TestScaffold {
String groupName;
if (tga == null) {
groupName = "<completed>";
finishedThreads++ ;
} else {
groupName = tga.getName();
}
@ -98,10 +96,6 @@ public class DebuggerThreadTest extends TestScaffold {
"' found in ThreadGroup '" + groupName + "'");
}
}
if (finishedThreads > 0 ) {
failure("FAIL: " + finishedThreads +
" threads completed while VM suspended.");
}
}
protected void runTests() throws Exception {