Thanks Dmitry and Leonid for review. Thanks Dan for information, I will do the needful before pushing this fix.
Regards, Cheleswer -----Original Message----- From: Daniel D. Daugherty Sent: Thursday, April 07, 2016 7:52 PM To: Dmitry Samersoff; Cheleswer Sahu; Leonid Mesnik; hotspot-runtime-...@openjdk.java.net; serviceability-dev@openjdk.java.net; Filipp Zhinkin Subject: Re: RFR[9u-dev]: 8153319: new test serviceability/tmtools/jstack/JstackThreadTest.java fails Cheleswer, When you re-sync with the current JDK9-hs-rt, you'll have to re-enable this test. It was quarantined yesterday with this fix: JDK-8153671 Quarantine serviceability/tmtools/jstack/JstackThreadTest.java until JDK-8153319 is fixed https://bugs.openjdk.java.net/browse/JDK-8153671 You just need to remove the @ignore line. Dan On 4/7/16 8:12 AM, Dmitry Samersoff wrote: > Cheleswer, > > Looks good for me. Reviewed. > > -Dmitry > > On 2016-04-07 16:50, Cheleswer Sahu wrote: >> Hi , >> Thanks for your review and suggestion. I agree that sleep is not the >> best and reliable way to achieve the objective of test case. I also >> found the idea of using j.u.c.CountDownLatch very easy and >> effective. I have made some changes in the code. Please review the >> code changes in the below link >> >> http://cr.openjdk.java.net/~csahu/8153319/webrev.01/ >> >> >> Regards, >> Cheleswer >> -----Original Message----- >> From: Leonid Mesnik >> Sent: Tuesday, April 05, 2016 7:00 PM >> To: Cheleswer Sahu; hotspot-runtime-...@openjdk.java.net; >> serviceability-dev@openjdk.java.net >> Subject: Re: RFR[9u-dev]: 8153319: new test >> serviceability/tmtools/jstack/JstackThreadTest.java fails >> >> Hi >> >> I don't think that sleep is a good way to ensure that thread is started. >> It is not reliable on the slow host / VM under stress and just waste of time >> on fast host. >> Is it possible just to add any explicit synchronization to ensure that >> NamedThread is started? >> >> Leonid >> >> On 05.04.2016 13:23, Cheleswer Sahu wrote: >>> 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 >>> >>> >>> >>> >