Skip to content

Commit c24cb5c

Browse files
committed
Do not hide Unsafe.alloc behind TruffleBoundary
1 parent 0ee3812 commit c24cb5c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2022, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2022, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* The Universal Permissive License (UPL), Version 1.0
@@ -49,7 +49,6 @@
4949
import com.oracle.graal.python.util.OverflowException;
5050
import com.oracle.graal.python.util.PythonUtils;
5151
import com.oracle.truffle.api.CompilerDirectives;
52-
import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary;
5352
import com.oracle.truffle.api.dsl.Cached;
5453
import com.oracle.truffle.api.dsl.Cached.Shared;
5554
import com.oracle.truffle.api.interop.InteropLibrary;
@@ -69,12 +68,10 @@ public final class CPyObjectArrayWrapper extends PythonStructNativeWrapper {
6968

7069
private static final Unsafe UNSAFE = PythonUtils.initUnsafe();
7170

72-
@TruffleBoundary
7371
private static long allocateBoundary(long size) {
7472
return UNSAFE.allocateMemory(size);
7573
}
7674

77-
@TruffleBoundary
7875
private static void freeBoundary(long ptr) {
7976
UNSAFE.freeMemory(ptr);
8077
}

0 commit comments

Comments
 (0)