Skip to content

Commit 93395ef

Browse files
committed
remove unused child node
1 parent bbd3282 commit 93395ef

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/ExternalFunctionNodes.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@
100100
import com.oracle.graal.python.nodes.truffle.PythonTypes;
101101
import com.oracle.graal.python.runtime.ExecutionContext.CalleeContext;
102102
import com.oracle.graal.python.runtime.ExecutionContext.IndirectCallContext;
103-
import com.oracle.graal.python.runtime.GilNode;
104103
import com.oracle.graal.python.runtime.PythonContext;
105104
import com.oracle.graal.python.runtime.object.PythonObjectFactory;
106105
import com.oracle.graal.python.util.Function;
@@ -481,7 +480,6 @@ static final class ExternalFunctionInvokeNode extends PNodeWithContext implement
481480
@Child private ToJavaStealingNode asPythonObjectNode = ToJavaStealingNodeGen.create();
482481
@Child private InteropLibrary lib;
483482
@Child private PRaiseNode raiseNode;
484-
@Child private GilNode gil;
485483

486484
@CompilationFinal private Assumption nativeCodeDoesntNeedExceptionState = Truffle.getRuntime().createAssumption();
487485
@CompilationFinal private Assumption nativeCodeDoesntNeedMyFrame = Truffle.getRuntime().createAssumption();
@@ -539,10 +537,6 @@ public Object execute(VirtualFrame frame, String name, Object callable, Object[]
539537
// it to the context since we cannot propagate it through the native frames.
540538
Object state = IndirectCallContext.enter(frame, ctx, this);
541539

542-
if (gil == null) {
543-
CompilerDirectives.transferToInterpreterAndInvalidate();
544-
gil = insert(GilNode.create());
545-
}
546540
try {
547541
return fromNative(asPythonObjectNode.execute(checkResultNode.execute(ctx, name, lib.execute(callable, cArguments))));
548542
} catch (UnsupportedTypeException | UnsupportedMessageException e) {

0 commit comments

Comments
 (0)