Skip to content

Commit 685ec14

Browse files
committed
make sure we request gil release again even if no thread is currently holding
1 parent b0c328e commit 685ec14

File tree

1 file changed

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

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,8 @@ protected void perform(ThreadLocalAction.Access access) {
270270
}
271271
}
272272
});
273+
} else {
274+
gilReleaseRequested.set(false);
273275
}
274276
}
275277
}, GIL_RELEASE_DELAY, GIL_RELEASE_DELAY, TimeUnit.MILLISECONDS);

0 commit comments

Comments
 (0)