Skip to content

Commit df459e3

Browse files
committed
[GR-15990] Disable ResolveTargetModuleForClassVariable cache for multi-context
PullRequest: truffleruby/2638
2 parents 09683f1 + 05f2899 commit df459e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/truffleruby/language/objects/classvariables/ResolveTargetModuleForClassVariablesNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public static ResolveTargetModuleForClassVariablesNode create() {
2525

2626
public abstract RubyModule execute(LexicalScope lexicalScope);
2727

28-
@Specialization(guards = "lexicalScope == cachedLexicalScope")
28+
@Specialization(guards = { "isSingleContext()", "lexicalScope == cachedLexicalScope" })
2929
protected RubyModule cached(LexicalScope lexicalScope,
3030
@Cached("lexicalScope") LexicalScope cachedLexicalScope,
3131
@Cached("uncached(lexicalScope)") RubyModule cachedModule) {

0 commit comments

Comments
 (0)