Skip to content

Commit 9d2a22f

Browse files
committed
Return new ref from __new__
1 parent 9853bc9 commit 9d2a22f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/capi/ManagedMethodWrappers.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
import com.oracle.graal.python.builtins.objects.PythonAbstractObject;
4444
import com.oracle.graal.python.builtins.objects.cext.capi.CExtNodes.IsPointerNode;
4545
import com.oracle.graal.python.builtins.objects.cext.capi.CExtNodes.ToJavaNode;
46-
import com.oracle.graal.python.builtins.objects.cext.capi.CExtNodes.ToSulongNode;
4746
import com.oracle.graal.python.builtins.objects.cext.capi.DynamicObjectNativeWrapper.PAsPointerNode;
4847
import com.oracle.graal.python.builtins.objects.cext.capi.DynamicObjectNativeWrapper.ToPyObjectNode;
4948
import com.oracle.graal.python.builtins.objects.function.PKeyword;
@@ -127,7 +126,7 @@ protected boolean isExecutable() {
127126
public Object execute(Object[] arguments,
128127
@CachedLibrary("this") PythonNativeWrapperLibrary lib,
129128
@Exclusive @Cached ToJavaNode toJavaNode,
130-
@Exclusive @Cached ToSulongNode toSulongNode,
129+
@Exclusive @Cached CExtNodes.ToNewRefNode toSulongNode,
131130
@Exclusive @Cached CallNode callNode,
132131
@Exclusive @Cached ExecutePositionalStarargsInteropNode posStarargsNode,
133132
@Exclusive @Cached ExpandKeywordStarargsNode expandKwargsNode,
@@ -172,7 +171,7 @@ protected boolean isExecutable() {
172171
public Object execute(Object[] arguments,
173172
@CachedLibrary("this") PythonNativeWrapperLibrary lib,
174173
@Exclusive @Cached ToJavaNode toJavaNode,
175-
@Exclusive @Cached ToSulongNode toSulongNode,
174+
@Exclusive @Cached CExtNodes.ToNewRefNode toSulongNode,
176175
@Exclusive @Cached PythonAbstractObject.PExecuteNode executeNode,
177176
@Exclusive @Cached GilNode gil) throws ArityException, UnsupportedMessageException {
178177
boolean mustRelease = gil.acquire();

0 commit comments

Comments
 (0)