# HG changeset patch # User Thomas Wuerthinger # Date 1357998648 -3600 # Node ID 5ce0743ba6d87b922dfbf218060cea45aec44b9b # Parent dd903cdfe7088fd85c04e2ef27a51db0cdc04d54 Small fix that prevented debug mode to work with DebugSnippets set to false. diff -r dd903cdfe708 -r 5ce0743ba6d8 graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/bridge/VMToCompilerImpl.java --- 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;