8218464: vmTestbase/nsk/jdi/VirtualMachine/allThreads/allthreads001/TestDescription.java failed

Reviewed-by: sspitsyn, gadams
This commit is contained in:
Daniil Titov 2019-03-06 09:30:05 -08:00
parent 914ce13a0c
commit 02d0800300

View File

@ -42,7 +42,7 @@ import com.sun.jdi.request.*;
* <code>com.sun.jdi.VirtualMachine.allThreads()</code> <BR>
* complies with the its spec. <BR>
* <BR>
* The test checks up the reasults of the method when <BR>
* The test checks up the results of the method when <BR>
* it is invoked two times in raw immediately after <BR>
* new thread has been started in the debuggee VM. <BR>
* <BR>
@ -192,11 +192,15 @@ public class allthreads001 {
String threadName = "testedThread";
// Suspend VM to ensure no new background thread (e.g. JVMCI
// compiler thread) is started between two allThreads() calls.
vm.suspend();
List allThreads1 = vm.allThreads();
log2("allThreads1.size() = " + allThreads1.size());
List allThreads2 = vm.allThreads();
log2("allThreads2.size() = " + allThreads2.size());
vm.resume();
if ( allThreads1.size() != allThreads2.size() ) {
log3("ERROR: allThreads1.size() != allThreads2.size()");