RFR[9u-dev]: 8153319: new test serviceability/tmtools/jstack/JstackThreadTest.java fails

Alexander Kulyakhtin alexander.kulyakhtin at oracle.com
Tue Apr 5 11:54:09 UTC 2016


Hi Cheleswer, 

I doubt Thread.sleep() can ensure a program state. As Philip has pointed out, some synchronization object would, probably, be more appropriate. 

+    // Ensuring that Jstack will always run after NamedThread is started +    Thread.sleep(2000); 


Best regards, 
Alexander 



----- Original Message ----- 
From: cheleswer.sahu at oracle.com 
To: hotspot-runtime-dev at openjdk.java.net, serviceability-dev at openjdk.java.net 
Sent: Tuesday, April 5, 2016 1:23:57 PM GMT +03:00 Iraq 
Subject: RFR[9u-dev]: 8153319: new test serviceability/tmtools/jstack/JstackThreadTest.java fails 





Hi, 



Please review the code changes for https://bugs.openjdk.java.net/browse/JDK-8153319 . 



Webrev link: http://cr.openjdk.java.net/~csahu/8153319/ 





Bug Brief: Test is failing on some platforms. 



Problem Identified: Newly created child thread (NamedThread) is finished its execution before main thread calls “jstack”, which result in test failure. 



Solution Proposed: Set the child thread in sleep state for forever and make sure that “jstack “ tool always gets executed after ” NamedThread” is started. 





Regards, 

Cheleswer 





More information about the hotspot-runtime-dev mailing list