changeset 7560:0b68e6426b48

fixed bug in implementation of -Dgraal.benchmark.compilation=true
author Doug Simon <doug.simon@oracle.com>
date Sun, 27 Jan 2013 21:05:19 +0100
parents f701f2ce0f59
children 0fdea35766a8
files graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/bridge/VMToCompilerImpl.java
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/bridge/VMToCompilerImpl.java	Fri Jan 25 16:05:41 2013 +0100
+++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/bridge/VMToCompilerImpl.java	Sun Jan 27 21:05:19 2013 +0100
@@ -345,8 +345,10 @@
         }
         phaseTransition("final");
 
-        parsedBytecodesPerSecond.printAll("ParsedBytecodesPerSecond");
-        inlinedBytecodesPerSecond.printAll("InlinedBytecodesPerSecond");
+        if (BenchmarkCompilation) {
+            parsedBytecodesPerSecond.printAll("ParsedBytecodesPerSecond");
+            inlinedBytecodesPerSecond.printAll("InlinedBytecodesPerSecond");
+        }
 
         SnippetCounter.printGroups(TTY.out().out());
     }