# HG changeset patch # User Chris Seaton # Date 1414187622 -3600 # Node ID 44dab78fe6bbbb742503378cc32603836732ebfe # Parent afbb8100ac92161be1c308d5bd74c551480e9cc6 Truffle: do not throw permament compiler exceptions into guest languages. diff -r afbb8100ac92 -r 44dab78fe6bb graal/com.oracle.graal.truffle.hotspot/src/com/oracle/graal/truffle/hotspot/HotSpotTruffleRuntime.java --- a/graal/com.oracle.graal.truffle.hotspot/src/com/oracle/graal/truffle/hotspot/HotSpotTruffleRuntime.java Fri Oct 24 22:51:53 2014 +0100 +++ b/graal/com.oracle.graal.truffle.hotspot/src/com/oracle/graal/truffle/hotspot/HotSpotTruffleRuntime.java Fri Oct 24 22:53:42 2014 +0100 @@ -219,7 +219,7 @@ try { future.get(); } catch (ExecutionException e) { - if (TruffleCompilationExceptionsAreThrown.getValue() && !(e.getCause() instanceof BailoutException)) { + if (TruffleCompilationExceptionsAreThrown.getValue() && !(e.getCause() instanceof BailoutException) && !((BailoutException) e.getCause()).isPermanent()) { throw new RuntimeException(e.getCause()); } else { // silently ignored