From 24446930c63acf94c9136b7bc0611794d6b0c502 Mon Sep 17 00:00:00 2001
From: Florian Angerer <florian.angerer@oracle.com>
Date: Mon, 16 Apr 2018 13:54:51 +0200
Subject: [PATCH] Do not catch 'ExitException' and 'ThreadDeath'.

---
 .../src/com/oracle/truffle/r/runtime/RInternalError.java        | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/RInternalError.java b/com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/RInternalError.java
index bf6f09ba02..020aa75d51 100644
--- a/com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/RInternalError.java
+++ b/com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/RInternalError.java
@@ -217,6 +217,8 @@ public final class RInternalError extends Error implements TruffleException {
                     System.err.println(message);
                 }
             }
+        } catch (ExitException | ThreadDeath t) {
+            throw t;
         } catch (Throwable t) {
             System.err.println("error while reporting internal error:");
             t.printStackTrace();
-- 
GitLab