Skip to content

Commit a786a49

Browse files
committed
[GR-57595] Fix Addr part alignment in Truffle compilation logs.
PullRequest: graal/18670
2 parents 7ff5967 + f74bff6 commit a786a49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

truffle/src/com.oracle.truffle.runtime/src/com/oracle/truffle/runtime/debug/TraceCompilationListener.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public static void install(OptimizedTruffleRuntime runtime) {
8585
private static final String QUEUED_FORMAT = "opt queued " + TARGET_FORMAT + "|" + TIER_FORMAT + "|" + COUNT_THRESHOLD_FORMAT + "|" + QUEUE_FORMAT + "|UTC %s|Src %s";
8686
private static final String UNQUEUED_FORMAT = "opt unque. " + TARGET_FORMAT + "|" + TIER_FORMAT + "|" + COUNT_THRESHOLD_FORMAT + "|" + QUEUE_FORMAT + "|UTC %s|Src %s|Reason %s";
8787
private static final String START_FORMAT = "opt start " + TARGET_FORMAT + "|" + TIER_FORMAT + "|Priority %9d|Rate %.6f|" + QUEUE_FORMAT + "|UTC %s|Src %s";
88-
private static final String DONE_FORMAT = "opt done " + TARGET_FORMAT + "|" + TIER_FORMAT + "|Time %18s|AST %4d|Inlined %3dY %3dN|IR %6d/%6d|CodeSize %7d|Addr %7s|UTC %s|Src %s";
88+
private static final String DONE_FORMAT = "opt done " + TARGET_FORMAT + "|" + TIER_FORMAT + "|Time %18s|AST %4d|Inlined %3dY %3dN|IR %6d/%6d|CodeSize %7d|Addr 0x%012x|UTC %s|Src %s";
8989
private static final String FAILED_FORMAT = "opt failed " + TARGET_FORMAT + "|" + TIER_FORMAT + "|Time %18s|Reason: %s|UTC %s|Src %s";
9090
private static final String INV_FORMAT = "opt inval. " + TARGET_FORMAT + " |UTC %s|Src %s|Reason %s";
9191
private static final String DEOPT_FORMAT = "opt deopt " + TARGET_FORMAT + "| |UTC %s|Src %s";
@@ -244,7 +244,7 @@ public void onCompilationSuccess(OptimizedCallTarget target, AbstractCompilation
244244
compilation.nodeCountPartialEval,
245245
graph == null ? 0 : graph.getNodeCount(),
246246
result == null ? 0 : result.getTargetCodeSize(),
247-
"0x" + Long.toHexString(target.getCodeAddress()),
247+
target.getCodeAddress(),
248248
TIME_FORMATTER.format(ZonedDateTime.now()),
249249
formatSourceSection(safeSourceSection(target))));
250250
currentCompilation.remove();

0 commit comments

Comments
 (0)