Skip to content

Commit f8b59eb

Browse files
committed
Caching context.
1 parent eef7362 commit f8b59eb

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/expression/IsExpressionNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ boolean doCode(PCode left, PCode right) {
217217

218218
@Specialization
219219
boolean doObjectPNone(Object left, PNone right,
220-
@CachedContext(PythonLanguage.class) PythonContext ctxt) {
220+
@Cached.Shared("ctxt") @CachedContext(PythonLanguage.class) PythonContext ctxt) {
221221
if (PythonOptions.getFlag(ctxt, PythonOptions.EmulateJython) && ctxt.getEnv().isHostObject(left) && ctxt.getEnv().asHostObject(left) == null &&
222222
right == PNone.NONE) {
223223
return true;

0 commit comments

Comments
 (0)