# HG changeset patch # User dtitov # Date 1551893405 28800 # Node ID 6684c75ab531a7b384f24a2b81d4723ea8a70d43 # Parent 21ea4076a275a0f498afa517e9ee1b94a9cf0255 8218464: vmTestbase/nsk/jdi/VirtualMachine/allThreads/allthreads001/TestDescription.java failed Reviewed-by: sspitsyn, gadams diff -r 21ea4076a275 -r 6684c75ab531 test/hotspot/jtreg/vmTestbase/nsk/jdi/VirtualMachine/allThreads/allthreads001.java --- a/test/hotspot/jtreg/vmTestbase/nsk/jdi/VirtualMachine/allThreads/allthreads001.java Thu Feb 28 14:22:03 2019 +0100 +++ b/test/hotspot/jtreg/vmTestbase/nsk/jdi/VirtualMachine/allThreads/allthreads001.java Wed Mar 06 09:30:05 2019 -0800 @@ -42,7 +42,7 @@ * com.sun.jdi.VirtualMachine.allThreads()
* complies with the its spec.
*
- * The test checks up the reasults of the method when
+ * The test checks up the results of the method when
* it is invoked two times in raw immediately after
* new thread has been started in the debuggee VM.
*
@@ -192,11 +192,15 @@ 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()");