# HG changeset patch # User Thomas Wuerthinger # Date 1425991475 -3600 # Node ID 84144a672012e4c585c469f4eeae2eda62b0d813 # Parent 2a21ea0ec141e924f2fc9e16bb3356b33d1c7703 Do not wrap Error objects in OptimizedCallTarget#doInvoke. diff -r 2a21ea0ec141 -r 84144a672012 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 Mar 10 12:48:03 2015 +0100 +++ b/graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/OptimizedCallTarget.java Tue Mar 10 13:44:35 2015 +0100 @@ -239,6 +239,8 @@ t = exceptionProfile.profile(t); if (t instanceof RuntimeException) { throw (RuntimeException) t; + } else if (t instanceof Error) { + throw (Error) t; } else { throw new RuntimeException(t); }