# HG changeset patch # User Doug Simon # Date 1338541356 -7200 # Node ID 425c74c9444de604dcc3c17a7a43ce8d9f3a3375 # Parent 4ea62e26643e28a38d4bf575de5758c981494150 bug fix: GraphTest method dumped to CFGPrinter was not the same as the one being executed diff -r 4ea62e26643e -r 425c74c9444d graal/com.oracle.graal.tests/src/com/oracle/graal/compiler/tests/GraphTest.java --- a/graal/com.oracle.graal.tests/src/com/oracle/graal/compiler/tests/GraphTest.java Fri Jun 01 02:01:49 2012 +0200 +++ b/graal/com.oracle.graal.tests/src/com/oracle/graal/compiler/tests/GraphTest.java Fri Jun 01 11:02:36 2012 +0200 @@ -158,7 +158,7 @@ } protected RiCompiledMethod addMethod(final RiResolvedMethod method, final CiTargetMethod tm) { - Debug.scope("CodeInstall", new Object[] {graalCompiler, method}, new Callable() { + return Debug.scope("CodeInstall", new Object[] {graalCompiler, method}, new Callable() { @Override public RiCompiledMethod call() throws Exception { final RiCodeInfo[] info = Debug.isDumpEnabled() ? new RiCodeInfo[1] : null; @@ -169,7 +169,6 @@ return installedMethod; } }); - return runtime.addMethod(method, tm, null); } /**