Skip to content

Commit 960e2aa

Browse files
committed
Fix incorrect usages of TruffleBoundary#transferToInterpreterOnException
1 parent 0967368 commit 960e2aa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/bytes/BytesNodes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,7 @@ static byte[] bytearray(VirtualFrame frame, Object iterable,
790790
}
791791
}
792792

793-
@TruffleBoundary(transferToInterpreterOnException = false)
793+
@TruffleBoundary
794794
private static byte[] resize(byte[] arr, int len) {
795795
return Arrays.copyOf(arr, len);
796796
}

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/list/ListBuiltins.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ private static int correctIndex(SequenceStorage s, long index) {
627627
return (int) Math.min(resultIndex, Integer.MAX_VALUE);
628628
}
629629

630-
@TruffleBoundary(transferToInterpreterOnException = false)
630+
@TruffleBoundary
631631
private static int correctIndex(SequenceStorage s, PInt index) {
632632
BigInteger value = index.getValue();
633633
if (value.compareTo(BigInteger.ZERO) < 0) {

0 commit comments

Comments
 (0)