Skip to content

Commit

Permalink
vjtop 打印线程时输出更多信息 #127
Browse files Browse the repository at this point in the history
  • Loading branch information
calvin1978 committed Sep 21, 2018
1 parent 37fd9db commit 14cd2a1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions vjtop/src/main/java/com/vip/vjtools/vjtop/VMDetailView.java
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ public StackTraceElement[] printSingleThread(ThreadInfo info) {
}

if (info.getLockName() != null) {
sb.append(" blocked on " + info.getLockName());
sb.append(" on " + info.getLockName());
}
if (info.getLockOwnerName() != null) {
sb.append(" owned by " + info.getLockOwnerId() + ":\"" + info.getLockOwnerName() + "\"");
Expand All @@ -526,10 +526,6 @@ public StackTraceElement[] printSingleThread(ThreadInfo info) {
sb.append("\tat ").append(traceElement).append("\n");
}

if (info.getLockOwnerId() != -1) {
sb.append(" blocked by thread:" + info.getLockOwnerId() + ":" + info.getLockOwnerName() + "\n");
}

System.out.print(sb.toString());

return trace;
Expand Down

0 comments on commit 14cd2a1

Please sign in to comment.