# HG changeset patch # User Doug Simon # Date 1424116401 -3600 # Node ID 5b93a11c535ca0bcce6103d168c1f62fb829782a # Parent 91ffbc349e911c2a55fa0b4c430a5f3b45d6523b fixed equality test to use .equals() instead of == diff -r 91ffbc349e91 -r 5b93a11c535c graal/com.oracle.graal.java/src/com/oracle/graal/java/GraphBuilderPhase.java --- a/graal/com.oracle.graal.java/src/com/oracle/graal/java/GraphBuilderPhase.java Mon Feb 16 15:36:32 2015 +0100 +++ b/graal/com.oracle.graal.java/src/com/oracle/graal/java/GraphBuilderPhase.java Mon Feb 16 20:53:21 2015 +0100 @@ -860,7 +860,7 @@ } if (tryInvocationPlugin(args, targetMethod, resultType)) { - if (GraalOptions.TraceInlineDuringParsing.getValue()) { + if (TraceInlineDuringParsing.getValue()) { for (int i = 0; i < this.currentDepth; ++i) { TTY.print(' '); } @@ -926,12 +926,12 @@ if (inlinedMethod != null) { if (inlinedMethod != null) { assert inlinedMethod.hasBytecodes(); - if (GraalOptions.TraceInlineDuringParsing.getValue()) { + if (TraceInlineDuringParsing.getValue()) { int bci = this.bci(); StackTraceElement ste = this.method.asStackTraceElement(bci); TTY.println(format("%s%s (%s:%d) inlining call to %s", nSpaces(currentDepth), method.getName(), ste.getFileName(), ste.getLineNumber(), inlinedMethod.format("%h.%n(%p)"))); } - parseAndInlineCallee(inlinedMethod, args, parsingReplacement || inlinedMethod != targetMethod); + parseAndInlineCallee(inlinedMethod, args, parsingReplacement || !inlinedMethod.equals(targetMethod)); plugin.postInline(inlinedMethod); } return true; @@ -1254,7 +1254,7 @@ // time mark the context loop begin as hit during the current // iteration. context.targetPeelIteration = nextPeelIteration++; - if (nextPeelIteration > GraalOptions.MaximumLoopExplosionCount.getValue()) { + if (nextPeelIteration > MaximumLoopExplosionCount.getValue()) { throw new BailoutException("too many loop explosion interations - does the explosion not terminate?"); } }