# HG changeset patch # User Tom Rodriguez # Date 1427309275 25200 # Node ID d3b3a094df52c99d6aee64d98f9771bd0d89f3c7 # Parent 104304a54b0cd8f6f3009492368edf25a09a7fda Alway print final CTW messages diff -r 104304a54b0c -r d3b3a094df52 graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/CompileTheWorld.java --- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/CompileTheWorld.java Wed Mar 25 11:47:49 2015 -0700 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/CompileTheWorld.java Wed Mar 25 11:47:55 2015 -0700 @@ -351,7 +351,7 @@ if (threadPool != null) { startThreads(); while (threadPool.getCompletedTaskCount() != threadPool.getTaskCount()) { - System.out.println("CompileTheWorld : Waiting for " + (threadPool.getTaskCount() - threadPool.getCompletedTaskCount()) + " compiles"); + TTY.println("CompileTheWorld : Waiting for " + (threadPool.getTaskCount() - threadPool.getCompletedTaskCount()) + " compiles"); try { threadPool.awaitTermination(15, TimeUnit.SECONDS); } catch (InterruptedException e) { @@ -364,10 +364,10 @@ println(); if (Options.CompileTheWorldMultiThreaded.getValue()) { - println("CompileTheWorld : Done (%d classes, %d methods, %d ms elapsed, %d ms compile time, %d bytes of memory used)", classFileCounter, compiledMethodsCounter.get(), elapsedTime, + TTY.println("CompileTheWorld : Done (%d classes, %d methods, %d ms elapsed, %d ms compile time, %d bytes of memory used)", classFileCounter, compiledMethodsCounter.get(), elapsedTime, compileTime.get(), memoryUsed.get()); } else { - println("CompileTheWorld : Done (%d classes, %d methods, %d ms, %d bytes of memory used)", classFileCounter, compiledMethodsCounter.get(), compileTime.get(), memoryUsed.get()); + TTY.println("CompileTheWorld : Done (%d classes, %d methods, %d ms, %d bytes of memory used)", classFileCounter, compiledMethodsCounter.get(), compileTime.get(), memoryUsed.get()); } }