Skip to content

Commit 1fe3ada

Browse files
SendaoYanAlex Menkov
authored andcommitted
8336284: Test TestClhsdbJstackLock.java/TestJhsdbJstackLock.java fails with -Xcomp after JDK-8335743
Reviewed-by: cjplummer, amenkov
1 parent c703d29 commit 1fe3ada

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/hotspot/jtreg/serviceability/sa/TestClhsdbJstackLock.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public static void main (String... args) throws Exception {
5959
"^\\s+- waiting to lock <0x[0-9a-f]+> \\(a java\\.lang\\.Class for LingeredAppWithLock\\)$",
6060
"^\\s+- locked <0x[0-9a-f]+> \\(a java\\.lang\\.Thread\\)$",
6161
"^\\s+- locked <0x[0-9a-f]+> \\(a java\\.lang\\.Class for int\\)$",
62-
"^\\s+- waiting on <0x[0-9a-f]+> \\(a java\\.lang\\.Object\\)$"));
62+
"^\\s+- waiting on (<0x[0-9a-f]+> \\(a java\\.lang\\.Object\\)|<no object reference available>)$"));
6363
unExpStrMap.put("jstack", List.of(
6464
"missing reason for "));
6565
test.run(app.getPid(), cmds, expStrMap, unExpStrMap);

test/hotspot/jtreg/serviceability/sa/TestJhsdbJstackLock.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public static void main (String... args) throws Exception {
6565
out.shouldMatch("^\\s+- waiting to lock <0x[0-9a-f]+> \\(a java\\.lang\\.Class for LingeredAppWithLock\\)$");
6666
out.shouldMatch("^\\s+- locked <0x[0-9a-f]+> \\(a java\\.lang\\.Thread\\)$");
6767
out.shouldMatch("^\\s+- locked <0x[0-9a-f]+> \\(a java\\.lang\\.Class for int\\)$");
68-
out.shouldMatch("^\\s+- waiting on <0x[0-9a-f]+> \\(a java\\.lang\\.Object\\)$");
68+
out.shouldMatch("^\\s+- waiting on (<0x[0-9a-f]+> \\(a java\\.lang\\.Object\\)|<no object reference available>)$");
6969

7070
out.stderrShouldBeEmptyIgnoreDeprecatedWarnings();
7171

0 commit comments

Comments
 (0)