Skip to content

Commit 6b4d165

Browse files
committed
Rename NativeReferenceStack to ReferenceStack
1 parent 016c8b2 commit 6b4d165

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public final class CApiContext extends CExtContext {
105105

106106
private final ReferenceQueue<Object> nativeObjectsQueue;
107107
private Map<Object, AllocInfo> allocatedNativeMemory;
108-
private final NativeReferenceStack<NativeObjectReference> nativeObjectWrapperList;
108+
private final ReferenceStack<NativeObjectReference> nativeObjectWrapperList;
109109
private TraceMallocDomain[] traceMallocDomains;
110110

111111
/** Container of pointers that have seen to be free'd. */
@@ -135,7 +135,7 @@ public final class CApiContext extends CExtContext {
135135
public CApiContext(PythonContext context, Object hpyLibrary) {
136136
super(context, hpyLibrary, CAPIConversionNodeSupplier.INSTANCE);
137137
nativeObjectsQueue = new ReferenceQueue<>();
138-
nativeObjectWrapperList = new NativeReferenceStack<>(NativeObjectReference.class);
138+
nativeObjectWrapperList = new ReferenceStack<>(NativeObjectReference.class);
139139

140140
// avoid 0 to be used as ID
141141
int nullID = nativeObjectWrapperList.reserve();
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@
4646

4747
import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary;
4848

49-
public final class NativeReferenceStack<T> implements Iterable<T> {
49+
public final class ReferenceStack<T> implements Iterable<T> {
5050
private static final int INITIAL_CAPACITY = 64;
5151

5252
private final IntegerStack freeList;
5353
private T[] nativeObjectWrapperList;
5454

5555
@TruffleBoundary
56-
public NativeReferenceStack(Class<T> elementClazz) {
56+
public ReferenceStack(Class<T> elementClazz) {
5757
nativeObjectWrapperList = (T[]) Array.newInstance(elementClazz, INITIAL_CAPACITY);
5858
freeList = new IntegerStack(INITIAL_CAPACITY);
5959
freeList.addToFreeList(0, INITIAL_CAPACITY);

0 commit comments

Comments
 (0)