Class NativeAllocation.Queue
java.lang.Object
com.oracle.truffle.nfi.backend.libffi.NativeAllocation.Queue
- Enclosing class:
NativeAllocation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidregisterNativeAllocation(Object javaObject, NativeAllocation.Destructor destructor) Register a nativeNativeAllocation.Destructorthat should be called when some managed object dies.
-
Constructor Details
-
Queue
public Queue()
-
-
Method Details
-
registerNativeAllocation
Register a nativeNativeAllocation.Destructorthat should be called when some managed object dies. TheNativeAllocation.Destructor.destroy()method will be called after thejavaObjectbecomes unreachable from GC roots.This will only happen if the
NativeAllocation.Queueis still alive when thejavaObjectdies. If theNativeAllocation.Queuedies before or at the same time as thejavaObject, theNativeAllocation.Destructor.destroy()method might not be called.- See Also:
-