Skip to content

Commit fe77f7b

Browse files
committed
Use 'equals' of native pointer object in guard.
1 parent 8ccc69f commit fe77f7b

File tree

1 file changed

+1
-1
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/CExtNodes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,7 @@ public abstract static class GetNativeClassNode extends CExtBaseNode {
848848

849849
public abstract PythonAbstractClass execute(PythonAbstractNativeObject object);
850850

851-
@Specialization(guards = "object == cachedObject", limit = "1")
851+
@Specialization(guards = "cachedObject.equals(object)", limit = "1")
852852
PythonAbstractClass getNativeClassCached(@SuppressWarnings("unused") PythonAbstractNativeObject object,
853853
@SuppressWarnings("unused") @Cached("object") PythonAbstractNativeObject cachedObject,
854854
@Cached("getNativeClass(cachedObject)") PythonAbstractClass cachedClass) {

0 commit comments

Comments
 (0)