Skip to content

Commit 0c0f8be

Browse files
committed
minor simplification in GilNode
1 parent 93395ef commit 0c0f8be

File tree

1 file changed

+1
-1
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/runtime

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/runtime/GilNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public final void release(boolean wasAcquired) {
139139
@TruffleBoundary
140140
public final boolean acquire(PythonContext context, Node location) {
141141
if (!context.ownsGil()) {
142-
TruffleSafepoint.setBlockedThreadInterruptible(location, PythonContext::acquireGil, PythonLanguage.getContext());
142+
TruffleSafepoint.setBlockedThreadInterruptible(location, PythonContext::acquireGil, context);
143143
return true;
144144
}
145145
return false;

0 commit comments

Comments
 (0)