RFR[XS] (10) 8181860 [TESTBUG] serviceability/tmtools/jstack/utils/DefaultFormat.java does not recognize "sleeping" state
David Holmes
david.holmes at oracle.com
Wed Aug 2 01:06:22 UTC 2017
On 18/07/2017 11:47 AM, Ioi Lam wrote:
> https://bugs.openjdk.java.net/browse/JDK-8181860
>
> This failure has shown up in the past few months with hotspot tier 2
> testing. Apparently "sleeping" has been a valid state for a long time
> so I don't know why the failure showed up only recently.
You should never be "sleeping" when waiting in Object.wait or for
monitor entry!
David
> FYI, I ran some casual testing and the tests failed on linux/x64 but not
> windows/x64.
>
> ==================================================
>
> $ hg diff
> diff -r ba869214a302
> test/serviceability/tmtools/jstack/utils/DefaultFormat.java
> --- a/test/serviceability/tmtools/jstack/utils/DefaultFormat.java Mon
> Jul 17 09:21:48 2017 -0700
> +++ b/test/serviceability/tmtools/jstack/utils/DefaultFormat.java Mon
> Jul 17 18:30:48 2017 -0700
> @@ -55,7 +55,7 @@
> protected String threadInfoPattern() {
> return
> "^\"(.*)\"\\s(#\\d+\\s|)(daemon\\s|)prio=(.+)\\s(os_prio=(.+)\\s|)tid=(.+)\\snid=(.+)\\s("
>
> + Consts.UNKNOWN
> - +
> "|runnable|waiting\\son\\scondition|in\\sObject\\.wait\\(\\)|waiting\\sfor\\smonitor\\sentry)((.*))$";
>
> + +
> "|runnable|sleeping|waiting\\son\\scondition|in\\sObject\\.wait\\(\\)|waiting\\sfor\\smonitor\\sentry)((.*))$";
>
> }
>
> ==================================================
>
> Thanks
> Ioi
>
More information about the hotspot-runtime-dev
mailing list