|
100 | 100 | import com.oracle.graal.python.nodes.truffle.PythonTypes;
|
101 | 101 | import com.oracle.graal.python.runtime.ExecutionContext.CalleeContext;
|
102 | 102 | import com.oracle.graal.python.runtime.ExecutionContext.IndirectCallContext;
|
103 |
| -import com.oracle.graal.python.runtime.GilNode; |
104 | 103 | import com.oracle.graal.python.runtime.PythonContext;
|
105 | 104 | import com.oracle.graal.python.runtime.object.PythonObjectFactory;
|
106 | 105 | import com.oracle.graal.python.util.Function;
|
@@ -481,7 +480,6 @@ static final class ExternalFunctionInvokeNode extends PNodeWithContext implement
|
481 | 480 | @Child private ToJavaStealingNode asPythonObjectNode = ToJavaStealingNodeGen.create();
|
482 | 481 | @Child private InteropLibrary lib;
|
483 | 482 | @Child private PRaiseNode raiseNode;
|
484 |
| - @Child private GilNode gil; |
485 | 483 |
|
486 | 484 | @CompilationFinal private Assumption nativeCodeDoesntNeedExceptionState = Truffle.getRuntime().createAssumption();
|
487 | 485 | @CompilationFinal private Assumption nativeCodeDoesntNeedMyFrame = Truffle.getRuntime().createAssumption();
|
@@ -539,10 +537,6 @@ public Object execute(VirtualFrame frame, String name, Object callable, Object[]
|
539 | 537 | // it to the context since we cannot propagate it through the native frames.
|
540 | 538 | Object state = IndirectCallContext.enter(frame, ctx, this);
|
541 | 539 |
|
542 |
| - if (gil == null) { |
543 |
| - CompilerDirectives.transferToInterpreterAndInvalidate(); |
544 |
| - gil = insert(GilNode.create()); |
545 |
| - } |
546 | 540 | try {
|
547 | 541 | return fromNative(asPythonObjectNode.execute(checkResultNode.execute(ctx, name, lib.execute(callable, cArguments))));
|
548 | 542 | } catch (UnsupportedTypeException | UnsupportedMessageException e) {
|
|
0 commit comments