Skip to content

Commit 6039aec

Browse files
committed
Fixup after rebase.
1 parent 1cae10d commit 6039aec

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

src/main/java/org/truffleruby/cext/CExtNodes.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -703,9 +703,8 @@ protected Object block() {
703703
public abstract static class VarsFromStackNode extends PrimitiveArrayArgumentsNode {
704704

705705
@Specialization
706-
protected Object variables(
707-
@Cached MarkingServiceNodes.GetMarkerThreadLocalDataNode getDataNode) {
708-
return getDataNode.execute().getExtensionCallStack().getVariables();
706+
protected Object variables() {
707+
return getLanguage().getCurrentThread().getCurrentFiber().extensionCallStack.getVariables();
709708
}
710709
}
711710

src/main/java/org/truffleruby/core/fiber/RubyFiber.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public RubyFiber(
6565
this.catchTags = ArrayHelpers.createEmptyArray(context, language);
6666
this.rubyThread = rubyThread;
6767
this.sourceLocation = sourceLocation;
68-
extensionCallStack = new MarkingService.ExtensionCallStack(Nil.INSTANCE);
68+
extensionCallStack = new MarkingService.ExtensionCallStack(null, Nil.INSTANCE);
6969
handleData = new ValueWrapperManager.HandleBlockHolder();
7070
}
7171

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
import org.truffleruby.core.array.RubyArray;
1717
import org.truffleruby.core.array.library.ArrayStoreLibrary;
1818
import org.truffleruby.core.kernel.TruffleKernelNodes.GetSpecialVariableStorage;
19-
import org.truffleruby.core.MarkingServiceNodes;
2019
import org.truffleruby.language.arguments.CallerDataReadingNode;
2120
import org.truffleruby.language.FrameAndVariablesSendingNode;
2221

@@ -52,8 +51,7 @@ public abstract static class FindRubyCallerSpecialStorage extends CoreMethodArra
5251
@Specialization(limit = "storageStrategyLimit()")
5352
protected Object findRubyCaller(RubyArray modules,
5453
@CachedLibrary("modules.store") ArrayStoreLibrary stores,
55-
@Cached GetSpecialVariableStorage storageNode,
56-
@Cached MarkingServiceNodes.GetMarkerThreadLocalDataNode getDataNode) {
54+
@Cached GetSpecialVariableStorage storageNode) {
5755
final int modulesSize = modules.size;
5856
Object[] moduleArray = stores.boxedCopyOfRange(modules.store, 0, modulesSize);
5957
FrameAndCallNode data = getContext()
@@ -66,7 +64,7 @@ protected Object findRubyCaller(RubyArray modules,
6664
} else {
6765
CallerDataReadingNode.notifyCallerToSendData(getContext(), data.callNode, this);
6866
Object variables = storageNode.execute(data.frame.materialize());
69-
getDataNode.execute().getExtensionCallStack().setVariables(variables);
67+
getLanguage().getCurrentThread().getCurrentFiber().extensionCallStack.setVariables(variables);
7068
return variables;
7169
}
7270
}

0 commit comments

Comments
 (0)