# HG changeset patch # User Chris Seaton # Date 1413219841 -3600 # Node ID 34f6995b1d90f4ff94acb909e5f6f3eddcb59001 # Parent 5c8660c0e760c27379beba1e9fb5921a7c7879cf Truffle: don't silently ignore exceptions in the compiler if we want to throw them. diff -r 5c8660c0e760 -r 34f6995b1d90 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 Mon Oct 13 18:03:12 2014 +0100 +++ b/graal/com.oracle.graal.truffle.hotspot/src/com/oracle/graal/truffle/hotspot/HotSpotTruffleRuntime.java Mon Oct 13 18:04:01 2014 +0100 @@ -210,7 +210,13 @@ if (!mayBeAsynchronous) { try { future.get(); - } catch (InterruptedException | ExecutionException e) { + } catch (ExecutionException e) { + if (TruffleCompilationExceptionsAreThrown.getValue()) { + throw new RuntimeException(e.getCause()); + } else { + // silently ignored + } + } catch (InterruptedException e) { // silently ignored } }