Mercurial > hg > graal-compiler
changeset 5461:425c74c9444d
bug fix: GraphTest method dumped to CFGPrinter was not the same as the one being executed
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Fri, 01 Jun 2012 11:02:36 +0200 |
parents | 4ea62e26643e |
children | fc58f934f9a1 |
files | graal/com.oracle.graal.tests/src/com/oracle/graal/compiler/tests/GraphTest.java |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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<RiCompiledMethod>() { + return Debug.scope("CodeInstall", new Object[] {graalCompiler, method}, new Callable<RiCompiledMethod>() { @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); } /**