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

Filipp Zhinkin filipp.zhinkin at gmail.com
Tue Apr 5 11:14:35 UTC 2016


Hi Cheleswer,

is it possible to use j.u.c.CountDownLatch for synchronization instead of sleep?

Regards,
Filipp.

On Tue, Apr 5, 2016 at 1:23 PM, Cheleswer Sahu
<cheleswer.sahu at oracle.com> 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