Searched refs:nativePtr (Results 1 – 3 of 3) sorted by relevance
233 public Runnable registerNativeAllocation(Object referent, long nativePtr) { in registerNativeAllocation() argument237 if (nativePtr == 0) { in registerNativeAllocation()249 applyFreeFunction(freeFunction, nativePtr); in registerNativeAllocation()253 thunk.setNativePtr(nativePtr); in registerNativeAllocation()260 private long nativePtr; field in NativeAllocationRegistry.CleanerThunk263 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() argument274 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()
155 long nativePtr = doNativeAllocation(size); in testEarlyFree() local157 Runnable cleaner = registry.registerNativeAllocation(referent, nativePtr); in testEarlyFree()