Skip to content
Permalink
Browse files

8239793: 'jfr' tool should hide hidden frames

Reviewed-by: mgronlun, mseledtsov
  • Loading branch information
Erik Gahlin
Erik Gahlin committed Feb 24, 2020
1 parent 266446f commit 965e330cb4a972fd96ff04e149029d1ee0561940
Showing with 5 additions and 3 deletions.
  1. +5 −3 src/jdk.jfr/share/classes/jdk/jfr/internal/tool/PrettyWriter.java
@@ -235,14 +235,16 @@ private void printStackTrace(RecordedStackTrace stackTrace) {
List<RecordedFrame> frames = stackTrace.getFrames();
indent();
int i = 0;
while (i < frames.size() && i < getStackDepth()) {
int depth = 0;
while (i < frames.size() && depth < getStackDepth()) {
RecordedFrame frame = frames.get(i);
if (frame.isJavaFrame()) {
if (frame.isJavaFrame() && !frame.getMethod().isHidden()) {
printIndent();
printValue(frame, null, "");
println();
i++;
depth++;
}
i++;
}
if (stackTrace.isTruncated() || i == getStackDepth()) {
printIndent();

0 comments on commit 965e330

Please sign in to comment.