8181860: [TESTBUG] serviceability/tmtools/jstack/utils/DefaultFormat.java does not recognize "sleeping" state
authoriklam
Wed, 19 Jul 2017 11:48:25 -0700
changeset 46693 1a9ef5f37bf0
parent 46692 117b089cb1c3
child 46694 d762fbd03dde
8181860: [TESTBUG] serviceability/tmtools/jstack/utils/DefaultFormat.java does not recognize "sleeping" state Summary: Added sleeping state to regexp Reviewed-by: dcubed, gtriantafill
hotspot/test/serviceability/tmtools/jstack/utils/DefaultFormat.java
--- a/hotspot/test/serviceability/tmtools/jstack/utils/DefaultFormat.java	Wed Jul 19 08:29:44 2017 -0700
+++ b/hotspot/test/serviceability/tmtools/jstack/utils/DefaultFormat.java	Wed Jul 19 11:48:25 2017 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -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)((.*))$";
     }
 
     protected String methodInfoPattern() {