We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7501b55 commit 640e45aCopy full SHA for 640e45a
src/main/java/org/truffleruby/language/threadlocal/MakeSpecialVariableStorageNode.java
@@ -26,11 +26,11 @@ public class MakeSpecialVariableStorageNode extends RubyContextSourceNode {
26
27
@Override
28
public Object execute(VirtualFrame frame) {
29
- if (frameAssumption == null) {
+ if (frameAssumption == null || !frameAssumption.isValid()) {
30
CompilerDirectives.transferToInterpreterAndInvalidate();
31
final FrameDescriptor descriptor = frame.getFrameDescriptor();
32
frameAssumption = descriptor.getVersion();
33
- storageSlot = descriptor.findOrAddFrameSlot(Layouts.SPECIAL_VARIABLES_STORAGE);
+ storageSlot = descriptor.findFrameSlot(Layouts.SPECIAL_VARIABLES_STORAGE);
34
}
35
36
if (storageSlot != null) {
0 commit comments