Skip to content

Commit 259655e

Browse files
committed
don't cache return values for lookup in multi-context
1 parent 2377e5b commit 259655e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/attributes/LookupAttributeInMRONode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ protected static Object findAttr(PythonCore core, PythonBuiltinClassType klass,
183183
return ReadAttributeFromDynamicObjectNode.getUncached().execute(core.lookupType(current).getStorage(), key);
184184
}
185185

186-
@Specialization(guards = {"klass == cachedKlass"}, limit = "getAttributeAccessInlineCacheMaxDepth()")
186+
@Specialization(guards = {"klass == cachedKlass"}, limit = "getAttributeAccessInlineCacheMaxDepth()", assumptions = "singleContextAssumption()")
187187
protected static Object lookupPBCTCached(@SuppressWarnings("unused") PythonBuiltinClassType klass,
188188
@Cached("klass") @SuppressWarnings("unused") PythonBuiltinClassType cachedKlass,
189189
@Cached("findAttr(getCore(), cachedKlass, key)") Object cachedValue) {

0 commit comments

Comments
 (0)