# HG changeset patch # User Christian Humer # Date 1413843768 -7200 # Node ID b3adab5f01a2dde60ca01e38e589e871869a1e94 # Parent 7b6a4ae58de4c0e9fd8204f37b627f608575fa6a Truffle: fix non permanent bailouts were shown as failures. they are no treated as opt unqueued events. diff -r 7b6a4ae58de4 -r b3adab5f01a2 graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/OptimizedCallTarget.java --- a/graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/OptimizedCallTarget.java Tue Oct 21 00:18:29 2014 +0200 +++ b/graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/OptimizedCallTarget.java Tue Oct 21 00:22:48 2014 +0200 @@ -325,12 +325,14 @@ } else { if (!(t instanceof BailoutException) || ((BailoutException) t).isPermanent()) { compilationPolicy.recordCompilationFailure(t); + logOptimizingFailed(this, t.toString()); + if (TruffleCompilationExceptionsAreThrown.getValue()) { + throw new OptimizationFailedException(t, this); + } + } else { + logOptimizingUnqueued(this, null, null, "Non permanent bailout: " + t.toString()); } - if (TruffleCompilationExceptionsAreThrown.getValue()) { - throw new OptimizationFailedException(t, this); - } - logOptimizingFailed(this, t.toString()); if (t instanceof BailoutException) { // Bailout => move on. } else if (TruffleCompilationExceptionsAreFatal.getValue()) {