# HG changeset patch # User Thomas Wuerthinger # Date 1366117247 -7200 # Node ID febfb532ed2fa716133694caa2f0d6662d3ea9c4 # Parent 5cabfd00241ef6df47219221e3822b1b5ab88f66 Removed several instances of System.out.print. diff -r 5cabfd00241e -r febfb532ed2f graal/com.oracle.graal.hotspot.server/src/com/oracle/graal/hotspot/server/InvocationSocket.java --- a/graal/com.oracle.graal.hotspot.server/src/com/oracle/graal/hotspot/server/InvocationSocket.java Tue Apr 16 14:06:45 2013 +0200 +++ b/graal/com.oracle.graal.hotspot.server/src/com/oracle/graal/hotspot/server/InvocationSocket.java Tue Apr 16 15:00:47 2013 +0200 @@ -26,6 +26,7 @@ import java.lang.reflect.*; import java.util.*; +import com.oracle.graal.debug.*; import com.oracle.graal.hotspot.logging.*; /** @@ -38,7 +39,6 @@ */ public class InvocationSocket { - // CheckStyle: stop system..print check private static final boolean DEBUG = false; private static final boolean COUNT_CALLS = false; @@ -74,7 +74,7 @@ sorted.put(entry.getValue(), entry.getKey()); } for (Map.Entry entry : sorted.entrySet()) { - System.out.println(entry.getKey() + ": " + entry.getValue()); + TTY.println(entry.getKey() + ": " + entry.getValue()); } } }); @@ -247,15 +247,15 @@ } result = new Result(result); } catch (IllegalArgumentException e) { - System.out.println("error while invoking " + invoke.methodName); + TTY.println("error while invoking " + invoke.methodName); e.getCause().printStackTrace(); result = e.getCause(); } catch (InvocationTargetException e) { - System.out.println("error while invoking " + invoke.methodName); + TTY.println("error while invoking " + invoke.methodName); e.getCause().printStackTrace(); result = e.getCause(); } catch (IllegalAccessException e) { - System.out.println("error while invoking " + invoke.methodName); + TTY.println("error while invoking " + invoke.methodName); e.getCause().printStackTrace(); result = e.getCause(); } finally { diff -r 5cabfd00241e -r febfb532ed2f graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/logging/CountingProxy.java --- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/logging/CountingProxy.java Tue Apr 16 14:06:45 2013 +0200 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/logging/CountingProxy.java Tue Apr 16 15:00:47 2013 +0200 @@ -27,6 +27,8 @@ import java.util.concurrent.*; import java.util.concurrent.atomic.*; +import com.oracle.graal.debug.*; + /** * A java.lang.reflect proxy that hierarchically logs all method invocations along with their * parameters and return values. @@ -41,9 +43,7 @@ public CountingProxy(T delegate) { assert ENABLED; - // CheckStyle: stop system..print check - System.out.println("Counting proxy for " + delegate.getClass().getSimpleName() + " created"); - // CheckStyle: resume system..print check + TTY.println("Counting proxy for " + delegate.getClass().getSimpleName() + " created"); this.delegate = delegate; proxies.add(this); } diff -r 5cabfd00241e -r febfb532ed2f graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/logging/Logger.java --- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/logging/Logger.java Tue Apr 16 14:06:45 2013 +0200 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/logging/Logger.java Tue Apr 16 15:00:47 2013 +0200 @@ -26,6 +26,8 @@ import java.lang.reflect.*; import java.util.*; +import com.oracle.graal.debug.*; + /** * Scoped logging class used to display the call hierarchy of VMToCompiler/CompilerToVM calls. */ @@ -70,12 +72,11 @@ } } - // CheckStyle: stop system..print check public static void info(String message) { if (ENABLED) { log(message); } else { - System.out.println(message); + TTY.println(message); } if (out != null) { out.println(message); @@ -88,11 +89,11 @@ Logger logger = loggerTL.get(); for (String line : message.split("\n")) { if (logger.open) { - System.out.println("..."); + TTY.println("..."); logger.open = false; } - System.out.print(space(logger.level)); - System.out.println(line); + TTY.print(space(logger.level)); + TTY.println(line); } } } @@ -101,11 +102,11 @@ if (ENABLED) { Logger logger = loggerTL.get(); if (logger.open) { - System.out.println("..."); + TTY.println("..."); logger.open = false; } - System.out.print(space(logger.level)); - System.out.print(message); + TTY.print(space(logger.level)); + TTY.print(message); logger.openStack.push(logger.open); logger.open = true; logger.level++; @@ -117,16 +118,14 @@ Logger logger = loggerTL.get(); logger.level--; if (logger.open) { - System.out.println(message); + TTY.println(message); } else { - System.out.println(space(logger.level) + "..." + message); + TTY.println(space(logger.level) + "..." + message); } logger.open = logger.openStack.pop(); } } - // CheckStyle: resume system..print check - private static String[] spaces = new String[50]; private static String space(int count) { diff -r 5cabfd00241e -r febfb532ed2f graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/node/NodeParser.java --- a/graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/node/NodeParser.java Tue Apr 16 14:06:45 2013 +0200 +++ b/graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/node/NodeParser.java Tue Apr 16 15:00:47 2013 +0200 @@ -62,9 +62,6 @@ if (node != null) { String dump = parsed.dump(); log.message(Kind.ERROR, null, null, null, dump); - // CheckStyle: stop system..print check - System.out.println(dump); - // CheckStyle: resume system..print check } } } finally {