Skip to content

Commit 5115e73

Browse files
committed
Fix: Consider Python internal frame when searching current frame on stack.
1 parent a2085ed commit 5115e73

File tree

1 file changed

+2
-2
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext

1 file changed

+2
-2
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/CExtNodes.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2302,11 +2302,11 @@ void doWithoutFrame(@SuppressWarnings("unused") Frame frame, PException e,
23022302
// the info on the next call
23032303
flag[0] = ConditionProfile.createBinaryProfile();
23042304
if (ref == null) {
2305-
ref = PArguments.getCurrentFrameInfo(ReadCallerFrameNode.getCallerFrame(null, FrameInstance.FrameAccess.READ_ONLY, true, 0));
2305+
ref = PArguments.getCurrentFrameInfo(ReadCallerFrameNode.getCallerFrame(null, FrameInstance.FrameAccess.READ_ONLY, false, 0));
23062306
}
23072307
}
23082308
if (flag[0].profile(ref == null)) {
2309-
ref = PArguments.getCurrentFrameInfo(ReadCallerFrameNode.getCallerFrame(null, FrameInstance.FrameAccess.READ_ONLY, true, 0));
2309+
ref = PArguments.getCurrentFrameInfo(ReadCallerFrameNode.getCallerFrame(null, FrameInstance.FrameAccess.READ_ONLY, false, 0));
23102310
}
23112311
transformToNative(context, ref, e);
23122312
}

0 commit comments

Comments
 (0)