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

public abstract Class ExtentDecommit

extends Callback
implements ExtentDecommitI
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.jemalloc.ExtentDecommitI, org.lwjgl.system.CallbackI, org.lwjgl.system.Pointer
Known Direct Subclasses
org.lwjgl.system.jemalloc.ExtentDecommit.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,
    size_t offset,
    size_t length,
    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
ExtentDecommit(long functionPointer)

Method Summary

Modifier and TypeMethod and Description
public static ExtentDecommit

Returns:

the new ExtentDecommit
create
(long functionPointer)

Creates a ExtentDecommit instance from the specified function pointer.

public static ExtentDecommit
create(ExtentDecommitI instance)

Creates a ExtentDecommit instance that delegates to the specified ExtentDecommitI instance.

public static ExtentDecommit
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

ExtentDecommitback to summary
protected ExtentDecommit()
ExtentDecommitback to summary
pack-priv ExtentDecommit(long functionPointer)

Method Detail

createback to summary
public static ExtentDecommit create(long functionPointer)

Creates a ExtentDecommit instance from the specified function pointer.

Returns:ExtentDecommit

the new ExtentDecommit

createback to summary
public static ExtentDecommit create(ExtentDecommitI instance)

Creates a ExtentDecommit instance that delegates to the specified ExtentDecommitI instance.

createSafeback to summary
public static ExtentDecommit createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

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

private final Class ExtentDecommit.Container

extends ExtentDecommit
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final ExtentDecommitI

Constructor Summary

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

Method Summary

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

Implements org.lwjgl.system.jemalloc.ExtentDecommitI.invoke.

Extent decommit hook.
Inherited from org.lwjgl.system.jemalloc.ExtentDecommit:
createcreatecreateSafe

Field Detail

delegateback to summary
private final ExtentDecommitI delegate

Constructor Detail

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

Method Detail

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

Implements org.lwjgl.system.jemalloc.ExtentDecommitI.invoke.

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

Extent decommit hook.

An extent decommit function conforms to the extent_decommit_t type and decommits any physical memory that is backing pages within an extent at given addr and size at offset bytes, extending for length on behalf of arena arena_ind, returning false upon success, in which case the pages will be committed via the extent commit function before being reused. If the function returns true, this indicates opt-out from decommit; the memory remains committed and available for future use, in which case it will be automatically retained for later reuse.

Annotations
@Override