Skip to content
Permalink
Browse files
8263572: Output from jstack mixed mode is misaligned
Reviewed-by: cjplummer, sspitsyn
  • Loading branch information
jyukutyo authored and plummercj committed Mar 23, 2021
1 parent 47ef038 commit 91d86e6ac1c7547eee453a542e44cef17b789631
Showing 1 changed file with 4 additions and 0 deletions.
@@ -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 {
@@ -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]);
}
}

0 comments on commit 91d86e6

Please sign in to comment.