RFR[9u-dev]: 8153319: new test serviceability/tmtools/jstack/JstackThreadTest.java fails
Leonid Mesnik
Leonid.Mesnik at oracle.com
Tue Apr 5 13:29:53 UTC 2016
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
>
>
>
>
More information about the hotspot-runtime-dev
mailing list