Searched refs:nativePtr (Results 1 - 3 of 3) sorted by last modified time

/libcore/luni/src/main/java/libcore/util/
H A DNativeAllocationRegistry.java55 * void f(void* nativePtr);
90 * automatically be called with <code>nativePtr</code> as its sole
92 * maintain copies of <code>nativePtr</code> outside
103 * @param nativePtr address of the native allocation
105 * @throws IllegalArgumentException if either referent or nativePtr is null.
109 * called with <code>nativePtr</code> as its
113 public Runnable registerNativeAllocation(Object referent, long nativePtr) { argument
117 if (nativePtr == 0) {
118 throw new IllegalArgumentException("nativePtr is null");
124 applyFreeFunction(freeFunction, nativePtr);
182 private long nativePtr; field in class:NativeAllocationRegistry.CleanerThunk
188 CleanerThunk(long nativePtr) argument
199 setNativePtr(long nativePtr) argument
232 applyFreeFunction(long freeFunction, long nativePtr) argument
[all...]
/libcore/luni/src/main/native/
H A Dlibcore_util_NativeAllocationRegistry.cpp25 void* nativePtr = reinterpret_cast<void*>(static_cast<uintptr_t>(ptr)); local
28 nativeFreeFunction(nativePtr);
/libcore/luni/src/test/java/libcore/util/
H A DNativeAllocationRegistryTest.java123 long nativePtr = doNativeAllocation(size);
125 Runnable cleaner = registry.registerNativeAllocation(referent, nativePtr);
155 // nativePtr should not be null

Completed in 353 milliseconds