Skip to content

Commit 4c2a8f3

Browse files
committed
Incref objects in NativeSequenceStorage
1 parent a0f354c commit 4c2a8f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/common/SequenceStorageNodes.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
import com.oracle.graal.python.builtins.objects.bytes.PBytesLike;
6060
import com.oracle.graal.python.builtins.objects.cext.capi.CExtNodes;
6161
import com.oracle.graal.python.builtins.objects.cext.capi.CExtNodes.PCallCapiFunction;
62-
import com.oracle.graal.python.builtins.objects.cext.capi.CExtNodes.ToSulongNode;
62+
import com.oracle.graal.python.builtins.objects.cext.capi.CExtNodes.ToNewRefNode;
6363
import com.oracle.graal.python.builtins.objects.cext.capi.NativeCAPISymbol;
6464
import com.oracle.graal.python.builtins.objects.common.IndexNodes.NormalizeIndexCustomMessageNode;
6565
import com.oracle.graal.python.builtins.objects.common.IndexNodes.NormalizeIndexNode;
@@ -1620,7 +1620,7 @@ static NativeSequenceStorage doDouble(double[] arr, int length,
16201620
@Specialization
16211621
static NativeSequenceStorage doObject(Object[] arr, int length,
16221622
@Exclusive @Cached PCallCapiFunction callNode,
1623-
@Exclusive @Cached ToSulongNode toSulongNode) {
1623+
@Exclusive @Cached ToNewRefNode toSulongNode) {
16241624
Object[] wrappedValues = new Object[arr.length];
16251625
for (int i = 0; i < wrappedValues.length; i++) {
16261626
wrappedValues[i] = toSulongNode.execute(arr[i]);

0 commit comments

Comments
 (0)