Skip to content

Commit 8015eaf

Browse files
committed
invalidate when we need to read the caller frame
1 parent 138d01c commit 8015eaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/frame/ReadCallerFrameNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ private PFrame.Reference walkLevels(VirtualFrame frame, PFrame.Reference startFr
149149
* @param level - the stack depth to go to. Ignored if {@code startFrame} is {@code null}
150150
*/
151151
public static Frame getCallerFrame(PFrame.Reference startFrame, FrameInstance.FrameAccess frameAccess, boolean skipInternal, int level) {
152-
CompilerDirectives.transferToInterpreter();
152+
CompilerDirectives.transferToInterpreterAndInvalidate();
153153
final Frame[] outputFrame = new Frame[1];
154154
Truffle.getRuntime().iterateFrames(new FrameInstanceVisitor<Frame>() {
155155
int i = -1;

0 commit comments

Comments
 (0)