Skip to content

Commit

Permalink
8263572: Output from jstack mixed mode is misaligned
Browse files Browse the repository at this point in the history
Reviewed-by: cjplummer, sspitsyn
  • Loading branch information
jyukutyo authored and plummercj committed Mar 23, 2021
1 parent 47ef038 commit 91d86e6
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -88,6 +88,7 @@ public void run(PrintStream out, Debugger dbg) {
return;
}
final boolean cdbgCanDemangle = cdbg.canDemangle();
String fillerForAddress = " ".repeat(2 + 2 * (int) VM.getVM().getAddressSize()) + "\t";
for (Iterator<ThreadProxy> itr = l.iterator() ; itr.hasNext();) {
ThreadProxy th = itr.next();
try {
Expand Down Expand Up @@ -174,6 +175,9 @@ public void run(PrintStream out, Debugger dbg) {
if (names != null && names.length != 0) {
// print java frame(s)
for (int i = 0; i < names.length; i++) {
if (i > 0) {
out.print(fillerForAddress);
}
out.println(names[i]);
}
}
Expand Down

1 comment on commit 91d86e6

@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.