public static interface Closure.Handle
ClosureManager, as a strong reference
to the native closure trampoline.| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Releases the closure memory back to the operating system.
|
void |
free()
Deprecated.
|
long |
getAddress()
Gets the native code address of the closure.
|
void |
setAutoRelease(boolean autorelease)
Sets whether the closure memory should be released when the
Handle is
garbage collected or not. |
long getAddress()
void setAutoRelease(boolean autorelease)
Handle is
garbage collected or not.autorelease - If true, the closure memory is automatically managed,
else the closure memory must be explicitly freed.void dispose()
Handle is garbage collected, this may not happen for some
time, and is non-deterministic. This allows explicit control over
memory reclamation.@Deprecated void free()
Copyright © 2025. All rights reserved.