Searched refs:nativePtr (Results 1 – 3 of 3) sorted by relevance
256 public @NonNull Runnable registerNativeAllocation(@NonNull Object referent, long nativePtr) { in registerNativeAllocation() argument260 if (nativePtr == 0) { in registerNativeAllocation()272 applyFreeFunction(freeFunction, nativePtr); in registerNativeAllocation()276 thunk.setNativePtr(nativePtr); in registerNativeAllocation()283 private long nativePtr; field in NativeAllocationRegistry.CleanerThunk286 this.nativePtr = 0; in CleanerThunk()290 if (nativePtr != 0) { in run()291 applyFreeFunction(freeFunction, nativePtr); in run()296 public void setNativePtr(long nativePtr) { in setNativePtr() argument297 this.nativePtr = nativePtr; in setNativePtr()[all …]
26 void* nativePtr = reinterpret_cast<void*>(static_cast<uintptr_t>(ptr)); in NativeAllocationRegistry_applyFreeFunction() local29 nativeFreeFunction(nativePtr); in NativeAllocationRegistry_applyFreeFunction()
165 long nativePtr = doNativeAllocation(size); in testEarlyFree() local167 Runnable cleaner = registry.registerNativeAllocation(referent, nativePtr); in testEarlyFree()191 long nativePtr = doNativeAllocation(size); in testApplyFreeFunction() local195 NativeAllocationRegistry.applyFreeFunction(getNativeFinalizer(), nativePtr); in testApplyFreeFunction() local