Skip to content

Commit 1f180dc

Browse files
committed
do not eagerly walk the stack in a callee just because it needed the exception state once before
1 parent c399d43 commit 1f180dc

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/runtime/ExecutionContext.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -476,13 +476,6 @@ private static PFrame.Reference enter(PythonThreadState threadState, Object[] pA
476476

477477
if (needsExceptionState) {
478478
PException curExc = threadState.getCaughtException();
479-
if (curExc == null) {
480-
CompilerDirectives.transferToInterpreter();
481-
PException fromStackWalk = GetCaughtExceptionNode.fullStackWalk();
482-
curExc = fromStackWalk != null ? fromStackWalk : PException.NO_EXCEPTION;
483-
// now, set in our args, such that we won't do this again
484-
threadState.setCaughtException(curExc);
485-
}
486479
PArguments.setException(pArguments, curExc);
487480
}
488481
return popTopFrameInfo;

0 commit comments

Comments
 (0)