We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4dfa0eb commit 2885f74Copy full SHA for 2885f74
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/runtime/AsyncHandler.java
@@ -243,6 +243,9 @@ void registerAction(Supplier<AsyncAction> actionSupplier) {
243
void activateGIL() {
244
CompilerAsserts.neverPartOfCompilation();
245
final PythonContext ctx = context.get();
246
+ if (ctx == null) {
247
+ return;
248
+ }
249
final Env env = ctx.getEnv();
250
final AtomicBoolean gilReleaseRequested = new AtomicBoolean(false);
251
executorService.scheduleWithFixedDelay(() -> {
0 commit comments