Skip to content

Commit a1beccb

Browse files
committed
Small change for new context references.
1 parent b3100f5 commit a1beccb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/org/truffleruby/core/thread/TruffleThreadNodes.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import org.truffleruby.core.kernel.TruffleKernelNodes.GetSpecialVariableStorage;
1919
import org.truffleruby.core.MarkingServiceNodes;
2020
import org.truffleruby.language.FrameAndVariablesSendingNode;
21-
import org.truffleruby.language.RubyContextNode;
21+
import org.truffleruby.language.RubyNode;
2222

2323
import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary;
2424
import com.oracle.truffle.api.dsl.Cached;
@@ -80,7 +80,8 @@ private static boolean notifyToStartSendingStorage(Node callerNode) {
8080
((FrameAndVariablesSendingNode) parent).startSendingOwnVariables();
8181
return true;
8282
}
83-
if (parent instanceof RubyContextNode) {
83+
if (parent instanceof RubyNode) {
84+
// A node with source info representing Ruby code, we could not find the FrameAndVariablesSendingNode
8485
return false;
8586
}
8687
parent = parent.getParent();

0 commit comments

Comments
 (0)