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.java233 public Runnable registerNativeAllocation(Object referent, long nativePtr) { in registerNativeAllocation() argument
237 if (nativePtr == 0) { in registerNativeAllocation()
249 applyFreeFunction(freeFunction, nativePtr); in registerNativeAllocation()
253 thunk.setNativePtr(nativePtr); in registerNativeAllocation()
260 private long nativePtr; field in NativeAllocationRegistry.CleanerThunk
263 this.nativePtr = 0; in CleanerThunk()
267 if (nativePtr != 0) { in run()
268 applyFreeFunction(freeFunction, nativePtr); in run()
273 public void setNativePtr(long nativePtr) { in setNativePtr() argument
274 this.nativePtr = nativePtr; in setNativePtr()
[all …]
/libcore/luni/src/main/native/
Dlibcore_util_NativeAllocationRegistry.cpp26 void* nativePtr = reinterpret_cast<void*>(static_cast<uintptr_t>(ptr)); in NativeAllocationRegistry_applyFreeFunction() local
29 nativeFreeFunction(nativePtr); in NativeAllocationRegistry_applyFreeFunction()
/libcore/luni/src/test/java/libcore/libcore/util/
DNativeAllocationRegistryTest.java155 long nativePtr = doNativeAllocation(size); in testEarlyFree() local
157 Runnable cleaner = registry.registerNativeAllocation(referent, nativePtr); in testEarlyFree()