RFR(S): 8211932: [ppc][testbug] runtime/jni/terminatedThread/TestTerminatedThread.java fails as threads don't terminate immediately (original) (raw)

Lindenmaier, Goetz goetz.lindenmaier at sap.com
Wed Oct 10 10:25:13 UTC 2018


Hi David,

This failure is very well reproducible, but only on linuxppc64 and linuxppc64le. I implemented this fix in July, just missed the RDP, and the patch is used in our nightly builds since then. Since that date I don't see a single failure. We run these nightly tests with the fastdebug build, though. But linuxx86_64, linuxs390x don't show the issue, nor all the other platforms. As there is no special high load, and because it's that well reproducible, I don't think I read the information of a thread of another process with the same thread id. With the output I implemented in the test, I see that the cpu time keeps increasing a bit, then it's stable for a few iterations, and then -1.

Best regards, Goetz.

-----Original Message----- From: David Holmes <david.holmes at oracle.com> Sent: Mittwoch, 10. Oktober 2018 01:22 To: Lindenmaier, Goetz <goetz.lindenmaier at sap.com>; hotspot-runtime- dev at openjdk.java.net Subject: Re: RFR(S): 8211932: [ppc][testbug] runtime/jni/terminatedThread/TestTerminatedThread.java fails as threads don't terminate immediately

Hi Goetz, There is already an open bug for this issue - JDK-8208159 - but it has only reproduced in a stress environment where we think thread-id's are being recycled (which means waiting longer won't help). This should be OS not CPU specific so I'm very interested to know in what circumstances you see this failure. I created an instrumented version of the test that did a pthreadkill on the target to check for ESRCH - which it got - yet we still see failures in those stress environments. David On 10/10/2018 1:10 AM, Lindenmaier, Goetz wrote: > Hi, > > On ppc, one still sees increasing thread cpu times after a thread has joined. > This makes TestTerminatedThread fail. > > This change gives the check a few seconds to wait until the thread disappears. > Please review. > http://cr.openjdk.java.net/~goetz/wr18/8211931- terminatedThrd/01/test/hotspot/jtreg/runtime/jni/terminatedThread/TestT erminatedThread.java.udiff.html > > Best regards, > Goetz. >



More information about the hotspot-runtime-dev mailing list