Mercurial > hg > graal-compiler
changeset 6537:14c952ec53a3
Fix NullPointerException when disabling Debug
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Tue, 09 Oct 2012 14:02:33 +0200 |
parents | f938212e56ab |
children | d1ba5ba4f484 |
files | graal/com.oracle.graal.loop/src/com/oracle/graal/loop/LoopEx.java |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.loop/src/com/oracle/graal/loop/LoopEx.java Mon Oct 08 19:46:12 2012 -0700 +++ b/graal/com.oracle.graal.loop/src/com/oracle/graal/loop/LoopEx.java Tue Oct 09 14:02:33 2012 +0200 @@ -130,7 +130,9 @@ } BinaryNode result = BinaryNode.reassociate(binary, invariant); if (result != binary) { - Debug.log(MetaUtil.format("%H::%n", Debug.contextLookup(ResolvedJavaMethod.class)) + " : Reassociated %s into %s", binary, result); + if (Debug.isLogEnabled()) { + Debug.log(MetaUtil.format("%H::%n", Debug.contextLookup(ResolvedJavaMethod.class)) + " : Reassociated %s into %s", binary, result); + } graph.replaceFloating(binary, result); } }