Skip to content

Commit

Permalink
8261929: ClhsdbFindPC fails with java.lang.RuntimeException: 'In java…
Browse files Browse the repository at this point in the history
… stack' missing from stdout/stderr

Reviewed-by: amenkov, stuefe, sspitsyn
  • Loading branch information
plummercj committed Feb 20, 2021
1 parent c2509ea commit 0825bc5
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions test/hotspot/jtreg/serviceability/sa/ClhsdbFindPC.java
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,15 @@ private static void testFindPC(boolean withXcomp, boolean withCore) throws Excep
parts = parts[1].split(" \\[");
parts = parts[1].split("\\]");
String stackAddress = parts[0]; // address of the thread's stack
cmdStr = "findpc " + stackAddress;
cmds = List.of(cmdStr);
expStrMap = new HashMap<>();
expStrMap.put(cmdStr, List.of("In java stack"));
runTest(withCore, cmds, expStrMap);
if (Long.decode(stackAddress) == 0L) {
System.out.println("Stack address is " + stackAddress + ". Skipping test.");
} else {
cmdStr = "findpc " + stackAddress;
cmds = List.of(cmdStr);
expStrMap = new HashMap<>();
expStrMap.put(cmdStr, List.of("In java stack"));
runTest(withCore, cmds, expStrMap);
}

// Run 'examine <addr>' using a thread's tid as the address. The
// examine output will be the of the form:
Expand Down

1 comment on commit 0825bc5

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.