Skip to content

Commit 406b72d

Browse files
Victor RudometovPaul Hohensee
authored andcommitted
8244670: convert clhsdb "whatis" command from javascript to java
Backport-of: 00c0d1087021603f3f09131cb0458ac8b9c110e5
1 parent 7ad7650 commit 406b72d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,15 @@ private static void testFindPC(boolean withXcomp, boolean withCore) throws Excep
182182
methodAddr));
183183
runTest(withCore, cmds, expStrMap);
184184

185+
// Rerun above findpc command, but this time using "whatis", which is an alias for "findpc".
186+
cmdStr = "whatis " + methodAddr;
187+
cmds = List.of(cmdStr);
188+
expStrMap = new HashMap<>();
189+
expStrMap.put(cmdStr, List.of("Method ",
190+
"LingeredApp.steadyState",
191+
methodAddr));
192+
runTest(withCore, cmds, expStrMap);
193+
185194
// Run findpc on a JavaThread*. We can find one in the jstack output.
186195
// The tid for a thread is it's JavaThread*. For example:
187196
// "main" #1 prio=5 tid=0x00000080263398f0 nid=0x277e0 ...

0 commit comments

Comments
 (0)