Skip to content

Commit 9e86467

Browse files
committed
Fix: use 'isPythonInternal' in stack walk.
1 parent 9706391 commit 9e86467

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,10 @@ public Frame visitFrame(FrameInstance frameInstance) {
167167
// avoid overriding the location if we don't know it
168168
if (callNode != null) {
169169
info.setCallNode(callNode);
170-
} else if (pRootNode.isInternal()) {
171-
// builtin functions may call without a Truffle call node; in
172-
// this case, we use the root node as location
170+
} else if (pRootNode.isPythonInternal()) {
171+
// In some special cases we call without a Truffle call node; in
172+
// this case, we use the root node as location (e.g. see
173+
// AsyncHandler.processAsyncActions).
173174
info.setCallNode(pRootNode);
174175
}
175176
// We may never return a frame without location because then we

0 commit comments

Comments
 (0)