# HG changeset patch # User Doug Simon # Date 1412172191 -7200 # Node ID 7c58f75be8d633758a7af053c2de564ee17043e1 # Parent ed30fa9d37ac7eee3248368895805db6c92af266 fixed regression in debug value printing and removed unused support for printing per VM phase diff -r ed30fa9d37ac -r 7c58f75be8d6 graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/DebugValuesPrinter.java --- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/DebugValuesPrinter.java Wed Oct 01 14:56:01 2014 +0200 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/DebugValuesPrinter.java Wed Oct 01 16:03:11 2014 +0200 @@ -37,13 +37,9 @@ */ public class DebugValuesPrinter { - public void printDebugValues(String phase, boolean reset) throws GraalInternalError { + public void printDebugValues() throws GraalInternalError { TTY.println(); - if (phase != null) { - TTY.println(""); - } else { - TTY.println(""); - } + TTY.println(""); List topLevelMaps = DebugValueMap.getTopLevelMaps(); List debugValues = KeyRegistry.getDebugValues(); if (debugValues.size() > 0) { @@ -89,10 +85,8 @@ default: throw new GraalInternalError("Unknown summary type: %s", summary); } - if (reset) { - for (DebugValueMap topLevelMap : topLevelMaps) { - topLevelMap.reset(); - } + for (DebugValueMap topLevelMap : topLevelMaps) { + topLevelMap.reset(); } } catch (Throwable e) { // Don't want this to change the exit status of the VM @@ -101,11 +95,7 @@ e.printStackTrace(); } } - if (phase != null) { - TTY.println(""); - } else { - TTY.println(""); - } + TTY.println(""); } private void flattenChildren(DebugValueMap map, DebugValueMap globalMap) { diff -r ed30fa9d37ac -r 7c58f75be8d6 graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotGraalRuntime.java --- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotGraalRuntime.java Wed Oct 01 14:56:01 2014 +0200 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotGraalRuntime.java Wed Oct 01 16:03:11 2014 +0200 @@ -132,11 +132,12 @@ throw new GraalInternalError("Unsupported value for DebugSummaryValue: %s", summary); } } - if (Debug.areUnconditionalMetricsEnabled() || Debug.areUnconditionalTimersEnabled() || (Debug.isEnabled() && areMetricsOrTimersEnabled())) { - // This must be created here to avoid loading the DebugValuesPrinter class - // during shutdown() which in turn can cause a deadlock - debugValuesPrinter = new DebugValuesPrinter(); - } + } + + if (Debug.areUnconditionalMetricsEnabled() || Debug.areUnconditionalTimersEnabled() || (Debug.isEnabled() && areMetricsOrTimersEnabled())) { + // This must be created here to avoid loading the DebugValuesPrinter class + // during shutdown() which in turn can cause a deadlock + debugValuesPrinter = new DebugValuesPrinter(); } // Complete initialization of backends @@ -588,7 +589,7 @@ @SuppressWarnings("unused") private void shutdown() throws Exception { if (debugValuesPrinter != null) { - debugValuesPrinter.printDebugValues(ResetDebugValuesAfterBootstrap.getValue() ? "application" : null, false); + debugValuesPrinter.printDebugValues(); } phaseTransition("final");