Class Pointer.NativeDeallocator
- All Implemented Interfaces:
Pointer.Deallocator, Pointer.ReferenceCounter
- Enclosing class:
Pointer
A
Pointer.Deallocator that calls, during garbage collection, a native function.
Passes as arguments the ownerAddress and deallocatorAddress given to the constructor.- Author:
- Samuel Audet
-
Method Summary
Methods inherited from class PhantomReference
getMethods inherited from class Reference
clone, enqueue, isEnqueued, reachabilityFence, refersTo
-
Method Details
-
ownerAddress
public long ownerAddress() -
deallocatorAddress
public long deallocatorAddress() -
deallocate
public void deallocate()- Specified by:
deallocatein interfacePointer.Deallocator
-
toString
-
clear
-
retain
public void retain()- Specified by:
retainin interfacePointer.ReferenceCounter
-
release
public boolean release()- Specified by:
releasein interfacePointer.ReferenceCounter
-
count
public int count()- Specified by:
countin interfacePointer.ReferenceCounter
-