Home
last modified time | relevance | path

Searched refs:nativePtr (Results 1 – 3 of 3) sorted by relevance

/libcore/luni/src/main/java/libcore/util/
DNativeAllocationRegistry.java113 public Runnable registerNativeAllocation(Object referent, long nativePtr) { in registerNativeAllocation() argument
117 if (nativePtr == 0) { in registerNativeAllocation()
124 applyFreeFunction(freeFunction, nativePtr); in registerNativeAllocation()
128 Cleaner cleaner = Cleaner.create(referent, new CleanerThunk(nativePtr)); in registerNativeAllocation()
172 long nativePtr = allocator.allocate(); in registerNativeAllocation() local
173 if (nativePtr == 0) { in registerNativeAllocation()
177 thunk.setNativePtr(nativePtr); in registerNativeAllocation()
182 private long nativePtr; field in NativeAllocationRegistry.CleanerThunk
185 this.nativePtr = 0; in CleanerThunk()
188 public CleanerThunk(long nativePtr) { in CleanerThunk() argument
[all …]
/libcore/luni/src/main/native/
Dlibcore_util_NativeAllocationRegistry.cpp25 void* nativePtr = reinterpret_cast<void*>(static_cast<uintptr_t>(ptr)); in NativeAllocationRegistry_applyFreeFunction() local
28 nativeFreeFunction(nativePtr); in NativeAllocationRegistry_applyFreeFunction()
/libcore/luni/src/test/java/libcore/util/
DNativeAllocationRegistryTest.java124 long nativePtr = doNativeAllocation(size); in testEarlyFree() local
126 Runnable cleaner = registry.registerNativeAllocation(referent, nativePtr); in testEarlyFree()