Searched refs:nativePtr (Results 1 – 3 of 3) sorted by relevance
113 public Runnable registerNativeAllocation(Object referent, long nativePtr) { in registerNativeAllocation() argument117 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() local173 if (nativePtr == 0) { in registerNativeAllocation()177 thunk.setNativePtr(nativePtr); in registerNativeAllocation()182 private long nativePtr; field in NativeAllocationRegistry.CleanerThunk185 this.nativePtr = 0; in CleanerThunk()188 public CleanerThunk(long nativePtr) { in CleanerThunk() argument[all …]
25 void* nativePtr = reinterpret_cast<void*>(static_cast<uintptr_t>(ptr)); in NativeAllocationRegistry_applyFreeFunction() local28 nativeFreeFunction(nativePtr); in NativeAllocationRegistry_applyFreeFunction()
124 long nativePtr = doNativeAllocation(size); in testEarlyFree() local126 Runnable cleaner = registry.registerNativeAllocation(referent, nativePtr); in testEarlyFree()