Skip to content

Commit 3339f89

Browse files
lukasstadlerfangerer
authored andcommitted
allow ThreadDeath to pass through PythonCExtBuiltins
1 parent 80ad3a6 commit 3339f89

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/cext/PythonCextBuiltins.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -622,6 +622,9 @@ public static Object doExecute(@SuppressWarnings("unused") CApiBuiltinExecutable
622622

623623
try {
624624
return call.execute(cachedSelf, arguments);
625+
} catch (ThreadDeath t) {
626+
CompilerDirectives.transferToInterpreter();
627+
throw t;
625628
} catch (Throwable t) {
626629
CompilerDirectives.transferToInterpreter();
627630
t.printStackTrace();

0 commit comments

Comments
 (0)