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 2204f26 commit 1237602Copy full SHA for 1237602
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/PythonLanguage.java
@@ -311,7 +311,13 @@ protected CallTarget parse(ParsingRequest request) {
311
}
312
RootNode root = doParse(context, source, 0);
313
if (root instanceof PRootNode) {
314
- ((PRootNode) root).triggerDeprecationWarnings();
+ GilNode gil = GilNode.getUncached();
315
+ boolean wasAcquired = gil.acquire(context, root);
316
+ try {
317
+ ((PRootNode) root).triggerDeprecationWarnings();
318
+ } finally {
319
+ gil.release(context, wasAcquired);
320
+ }
321
322
if (core.isInitialized()) {
323
return PythonUtils.getOrCreateCallTarget(new TopLevelExceptionHandler(this, root, source));
0 commit comments