Skip to content

Commit 6012d32

Browse files
committed
Transfer on StackOverflowError
1 parent 7a34b87 commit 6012d32

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/bytecode/PBytecodeRootNode.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2875,6 +2875,7 @@ protected PException wrapJavaExceptionIfApplicable(Throwable e) {
28752875
return wrapJavaException(e, factory.createBaseException(SystemError, ErrorMessages.M, new Object[]{e}));
28762876
}
28772877
if (e instanceof StackOverflowError) {
2878+
CompilerDirectives.transferToInterpreterAndInvalidate();
28782879
PythonContext.get(this).reacquireGilAfterStackOverflow();
28792880
return wrapJavaException(e, factory.createBaseException(RecursionError, ErrorMessages.MAXIMUM_RECURSION_DEPTH_EXCEEDED, new Object[]{}));
28802881
}

0 commit comments

Comments
 (0)