changeset 7346:5ce0743ba6d8

Small fix that prevented debug mode to work with DebugSnippets set to false.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Sat, 12 Jan 2013 14:50:48 +0100
parents dd903cdfe708
children 8db89ad23965
files graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/bridge/VMToCompilerImpl.java
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/bridge/VMToCompilerImpl.java	Sat Jan 12 14:48:44 2013 +0100
+++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/bridge/VMToCompilerImpl.java	Sat Jan 12 14:50:48 2013 +0100
@@ -124,9 +124,13 @@
             }
         }
 
-        if (GraalOptions.Debug && GraalOptions.DebugSnippets) {
-            DebugEnvironment.initialize(log);
+        if (GraalOptions.Debug) {
+            Debug.enable();
+            if (GraalOptions.DebugSnippets) {
+                DebugEnvironment.initialize(log);
+            }
         }
+
         // Install intrinsics.
         GraalCompiler compiler = graalRuntime.getCompiler();
         final HotSpotRuntime runtime = (HotSpotRuntime) compiler.runtime;