Home | History | Annotate | Download | only in util

Lines Matching defs:Allocator

144      * {@link #registerNativeAllocation(Object, Allocator) registerNativeAllocation(Object, Allocator)}.
146 public interface Allocator {
160 * If the allocator returns null, the allocation is not registered and a
164 * @param allocator used to perform the underlying native allocation.
169 * case, the allocator will not be run.
171 public Runnable registerNativeAllocation(Object referent, Allocator allocator) {
176 // Create the cleaner before running the allocator so that
182 long nativePtr = allocator.allocate();