Mercurial > hg > graal-compiler
diff graal/com.oracle.graal.printer/src/com/oracle/graal/printer/GraphPrinterDumpHandler.java @ 18642:133d5a98c547
generalized semantics of DebugDumpHandler.close() to mean reset so that closing a handler flushes and releases all its resources but leaves it operational (i.e. subsequent uses will (re)create and (re)open the required resources)
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 08 Dec 2014 14:32:21 +0100 |
parents | 10c12d09a8d2 |
children | 9afe8fbe088c |
line wrap: on
line diff
--- a/graal/com.oracle.graal.printer/src/com/oracle/graal/printer/GraphPrinterDumpHandler.java Sun Dec 07 20:43:33 2014 +0100 +++ b/graal/com.oracle.graal.printer/src/com/oracle/graal/printer/GraphPrinterDumpHandler.java Mon Dec 08 14:32:21 2014 +0100 @@ -160,7 +160,7 @@ final Graph graph = (Graph) object; if (printer != null) { - // Get all current RiResolvedMethod instances in the context. + // Get all current JavaMethod instances in the context. List<String> inlineContext = getInlineContext(); // Reverse list such that inner method comes after outer method. @@ -272,6 +272,7 @@ } if (printer != null) { printer.close(); + printer = null; } } }