Top Description Inners Constructors Methods
org.lwjgl.system.jemalloc

public abstract Class ExtentDalloc

extends Callback
implements ExtentDallocI
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.jemalloc.ExtentDallocI, org.lwjgl.system.CallbackI, org.lwjgl.system.Pointer
Known Direct Subclasses
org.lwjgl.system.jemalloc.ExtentDalloc.Container
Imports
javax.annotation.*, org.lwjgl.system.*

Instances of this class may be set to the ExtentHooks struct.

Type


bool (*invoke) (
    extent_hooks_t *extent_hooks,
    void *addr,
    size_t size,
    bool committed,
    unsigned int arena_ind
)

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

AccessConstructor and Description
protected
pack-priv
ExtentDalloc(long functionPointer)

Method Summary

Modifier and TypeMethod and Description
public static ExtentDalloc

Returns:

the new ExtentDalloc
create
(long functionPointer)

Creates a ExtentDalloc instance from the specified function pointer.

public static ExtentDalloc
create(ExtentDallocI instance)

Creates a ExtentDalloc instance that delegates to the specified ExtentDallocI instance.

public static ExtentDalloc
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

ExtentDallocback to summary
protected ExtentDalloc()
ExtentDallocback to summary
pack-priv ExtentDalloc(long functionPointer)

Method Detail

createback to summary
public static ExtentDalloc create(long functionPointer)

Creates a ExtentDalloc instance from the specified function pointer.

Returns:ExtentDalloc

the new ExtentDalloc

createback to summary
public static ExtentDalloc create(ExtentDallocI instance)

Creates a ExtentDalloc instance that delegates to the specified ExtentDallocI instance.

createSafeback to summary
public static ExtentDalloc createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Annotations
@Nullable
org.lwjgl.system.jemalloc back to summary

private final Class ExtentDalloc.Container

extends ExtentDalloc
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final ExtentDallocI

Constructor Summary

AccessConstructor and Description
pack-priv
Container(long functionPointer, ExtentDallocI delegate)

Method Summary

Modifier and TypeMethod and Description
public boolean
invoke(long extent_hooks, long addr, long size, boolean committed, int arena_ind)

Implements org.lwjgl.system.jemalloc.ExtentDallocI.invoke.

Extent deallocation hook.
Inherited from org.lwjgl.system.jemalloc.ExtentDalloc:
createcreatecreateSafe

Field Detail

delegateback to summary
private final ExtentDallocI delegate

Constructor Detail

Containerback to summary
pack-priv Container(long functionPointer, ExtentDallocI delegate)

Method Detail

invokeback to summary
public boolean invoke(long extent_hooks, long addr, long size, boolean committed, int arena_ind)

Implements org.lwjgl.system.jemalloc.ExtentDallocI.invoke.

Doc from org.lwjgl.system.jemalloc.ExtentDallocI.invoke.

Extent deallocation hook.

An extent deallocation function conforms to the extent_dalloc_t type and deallocates an extent at given addr and size with committed/decommited memory as indicated, on behalf of arena arena_ind, returning false upon success. If the function returns true, this indicates opt-out from deallocation; the virtual memory mapping associated with the extent remains mapped, in the same commit state, and available for future use, in which case it will be automatically retained for later reuse.

Annotations
@Override