Skip to content

Commit 51dd4ae

Browse files
committed
opt GIL: PythonAbstractNativeObject
1 parent 0c6ebb3 commit 51dd4ae

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

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

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -355,13 +355,8 @@ static final class IsIdenticalOrUndefined {
355355
@Specialization
356356
static TriState doPythonAbstractNativeObject(PythonAbstractNativeObject receiver, PythonAbstractNativeObject other,
357357
@CachedLibrary("receiver.object") InteropLibrary objLib,
358-
@CachedLibrary(limit = "1") InteropLibrary otherObjectLib, @Exclusive @Cached GilNode gil) {
359-
boolean mustRelease = gil.acquire();
360-
try {
361-
return TriState.valueOf(objLib.isIdentical(receiver.object, other.object, otherObjectLib));
362-
} finally {
363-
gil.release(mustRelease);
364-
}
358+
@CachedLibrary(limit = "1") InteropLibrary otherObjectLib) {
359+
return TriState.valueOf(objLib.isIdentical(receiver.object, other.object, otherObjectLib));
365360
}
366361

367362
@Fallback

0 commit comments

Comments
 (0)