8019927: [TESTBUG] nsk/jvmti/GetThreadInfo/thrinfo001 intermittently fails with 'invalid thread group' when running with JFR
Reviewed-by: amenkov, cjplummer, sspitsyn
--- 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) {}