- All Known Implementing Classes:
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ExtentAllocI extends CallbackI.PInstances of this interface may be set to the
void * (*) ( extent_hooks_t *extent_hooks, void *new_addr, size_t size, size_t alignment, bool *zero, bool *commit, unsigned int arena_ind )
Nested Class Summary
Nested classes/interfaces inherited from interface org.lwjgl.system.CallbackI
CallbackI.B, CallbackI.D, CallbackI.F, CallbackI.I, CallbackI.J, CallbackI.N, CallbackI.P, CallbackI.S, CallbackI.V, CallbackI.Z
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description
callback(long args)Will be called by native code.
getSignature()Returns the dyncall signature for this callback function.
invoke(long extent_hooks, long new_addr, long size, long alignment, long zero, long commit, int arena_ind)Extent allocation hook.
static final java.lang.String SIGNATURE
- See Also:
- Constant Field Values
default java.lang.String getSignature()Description copied from interface:
CallbackIReturns the dyncall signature for this callback function. [INTERNAL API]
default long callback(long args)Description copied from interface:
CallbackI.PWill be called by native code.
long invoke(long extent_hooks, long new_addr, long size, long alignment, long zero, long commit, int arena_ind)Extent allocation hook.
An extent allocation function conforms to the
extent_alloc_ttype and upon success returns a pointer to
sizebytes of mapped memory on behalf of arena
arena_indsuch that the extent's base address is a multiple of
alignment, as well as setting
*zeroto indicate whether the extent is zeroed and
*committo indicate whether the extent is committed. Upon error the function returns
sizeparameter is always a multiple of the page size. The
alignmentparameter is always a power of two at least as large as the page size. Zeroing is mandatory if
*zerois true upon function entry. Committing is mandatory if
*commitis true upon function entry. If
NULL, the returned pointer must be
new_addron success or
NULLon error. Committed memory may be committed in absolute terms as on a system that does not overcommit, or in implicit terms as on a system that overcommits and satisfies physical memory needs on demand via soft page faults. Note that replacing the default extent allocation function makes the arena's