Mercurial > hg > truffle
changeset 19744:84144a672012
Do not wrap Error objects in OptimizedCallTarget#doInvoke.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Tue, 10 Mar 2015 13:44:35 +0100 |
parents | 2a21ea0ec141 |
children | edf663acfb3f 2e5ed2fe28cb |
files | graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/OptimizedCallTarget.java |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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); }