# HG changeset patch # User Gilles Duboscq # Date 1332437812 -3600 # Node ID 19a3ae027c56949ee00b31f33ff80ce41982513a # Parent f5511facb897a311a63f815d525a1628a5bc1f91 Use DumpOnError flag, false by default diff -r f5511facb897 -r 19a3ae027c56 graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/GraalOptions.java --- a/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/GraalOptions.java Thu Mar 22 18:28:18 2012 +0100 +++ b/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/GraalOptions.java Thu Mar 22 18:36:52 2012 +0100 @@ -117,11 +117,10 @@ public static String Time = null; public static String Log = null; public static String MethodFilter = null; + public static boolean DumpOnError = ____; // Ideal graph visualizer output settings - public static boolean PlotOnError = ____; public static int PlotLevel = 3; - public static boolean PlotSnippets = ____; public static int PrintIdealGraphLevel = 0; public static boolean PrintIdealGraphFile = ____; public static String PrintIdealGraphAddress = "127.0.0.1"; diff -r f5511facb897 -r 19a3ae027c56 graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotDebugConfig.java --- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotDebugConfig.java Thu Mar 22 18:28:18 2012 +0100 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotDebugConfig.java Thu Mar 22 18:36:52 2012 +0100 @@ -143,7 +143,7 @@ Debug.log(String.format("Exception occured in scope: %s", Debug.currentScope())); for (Object o : Debug.context()) { Debug.log("Context obj %s", o); - if (o instanceof Graph) { + if (o instanceof Graph && GraalOptions.DumpOnError) { Graph graph = (Graph) o; Debug.log("Found graph in context: ", graph); Debug.dump(o, "Exception graph");