File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/runtime Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 5656import com .oracle .graal .python .PythonLanguage ;
5757import com .oracle .graal .python .builtins .objects .function .PArguments ;
5858import com .oracle .graal .python .builtins .objects .function .Signature ;
59- import com .oracle .graal .python .nodes .PClosureRootNode ;
6059import com .oracle .graal .python .nodes .PRootNode ;
6160import com .oracle .graal .python .nodes .call .CallNode ;
6261import com .oracle .graal .python .nodes .call .GenericInvokeNode ;
6362import com .oracle .graal .python .nodes .frame .ReadCallerFrameNode ;
64- import com .oracle .graal .python .nodes .function .FunctionRootNode ;
6563import com .oracle .graal .python .runtime .ExecutionContext .CalleeContext ;
6664import com .oracle .graal .python .runtime .exception .ExceptionUtils ;
6765import com .oracle .graal .python .runtime .exception .PException ;
@@ -303,11 +301,11 @@ protected void perform(ThreadLocalAction.Access access) {
303301 // when the thread in question isn't actually holding it.
304302 gilReleaseRequested .set (false );
305303 RootNode rootNode = access .getLocation ().getRootNode ();
306- if (rootNode instanceof PClosureRootNode ) {
304+ if (rootNode instanceof PRootNode ) {
307305 if (rootNode .isInternal ()) {
308306 return ;
309307 }
310- if (rootNode instanceof FunctionRootNode && (( FunctionRootNode ) rootNode ).isPythonInternal ()) {
308+ if ((( PRootNode ) rootNode ).isPythonInternal ()) {
311309 return ;
312310 }
313311 // we only release the gil in ordinary Python code nodes
You can’t perform that action at this time.
0 commit comments