8019927: [TESTBUG] nsk/jvmti/GetThreadInfo/thrinfo001 intermittently fails with 'invalid thread group' when running with JFR
authorgadams
Tue, 28 Aug 2018 07:30:36 -0400
changeset 51549 f419dbb34719
parent 51548 35a6956f4243
child 51550 a2f1923b3e16
8019927: [TESTBUG] nsk/jvmti/GetThreadInfo/thrinfo001 intermittently fails with 'invalid thread group' when running with JFR Reviewed-by: amenkov, cjplummer, sspitsyn
test/hotspot/jtreg/vmTestbase/nsk/jvmti/GetThreadInfo/thrinfo001.java
--- a/test/hotspot/jtreg/vmTestbase/nsk/jvmti/GetThreadInfo/thrinfo001.java	Tue Aug 28 16:04:54 2018 -0400
+++ b/test/hotspot/jtreg/vmTestbase/nsk/jvmti/GetThreadInfo/thrinfo001.java	Tue Aug 28 07:30:36 2018 -0400
@@ -63,13 +63,13 @@
         try {
             t_a.join();
         } catch (InterruptedException e) {}
+        checkInfo(t_a, t_a.getThreadGroup(), 1);
 
         thrinfo001b t_b = new thrinfo001b();
         t_b.setPriority(Thread.MIN_PRIORITY);
         t_b.setDaemon(true);
         checkInfo(t_b, t_b.getThreadGroup(), 2);
         t_b.start();
-        checkInfo(t_b, t_b.getThreadGroup(), 2);
         try {
             t_b.join();
         } catch (InterruptedException e) {}