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

public abstract Class ExtentCommit

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

Method Summary

Modifier and TypeMethod and Description
public static ExtentCommit

Returns:

the new ExtentCommit
create
(long functionPointer)

Creates a ExtentCommit instance from the specified function pointer.

public static ExtentCommit
create(ExtentCommitI instance)

Creates a ExtentCommit instance that delegates to the specified ExtentCommitI instance.

public static ExtentCommit
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

ExtentCommitback to summary
protected ExtentCommit()
ExtentCommitback to summary
pack-priv ExtentCommit(long functionPointer)

Method Detail

createback to summary
public static ExtentCommit create(long functionPointer)

Creates a ExtentCommit instance from the specified function pointer.

Returns:ExtentCommit

the new ExtentCommit

createback to summary
public static ExtentCommit create(ExtentCommitI instance)

Creates a ExtentCommit instance that delegates to the specified ExtentCommitI instance.

createSafeback to summary
public static ExtentCommit createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

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

private final Class ExtentCommit.Container

extends ExtentCommit
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final ExtentCommitI

Constructor Summary

AccessConstructor and Description
pack-priv
Container(long functionPointer, ExtentCommitI 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.ExtentCommitI.invoke.

Extent commit hook.
Inherited from org.lwjgl.system.jemalloc.ExtentCommit:
createcreatecreateSafe

Field Detail

delegateback to summary
private final ExtentCommitI delegate

Constructor Detail

Containerback to summary
pack-priv Container(long functionPointer, ExtentCommitI 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.ExtentCommitI.invoke.

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

Extent commit hook.

An extent commit function conforms to the extent_commit_t type and commits zeroed physical memory to back 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. 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. If the function returns true, this indicates insufficient physical memory to satisfy the request.

Annotations
@Override