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

public abstract Class ExtentMerge

extends Callback
implements ExtentMergeI
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.jemalloc.ExtentMergeI, org.lwjgl.system.CallbackI, org.lwjgl.system.Pointer
Known Direct Subclasses
org.lwjgl.system.jemalloc.ExtentMerge.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_a,
    size_t size_a,
    void *addr_b,
    size_t size_b,
    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
ExtentMerge(long functionPointer)

Method Summary

Modifier and TypeMethod and Description
public static ExtentMerge

Returns:

the new ExtentMerge
create
(long functionPointer)

Creates a ExtentMerge instance from the specified function pointer.

public static ExtentMerge
create(ExtentMergeI instance)

Creates a ExtentMerge instance that delegates to the specified ExtentMergeI instance.

public static ExtentMerge
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

ExtentMergeback to summary
protected ExtentMerge()
ExtentMergeback to summary
pack-priv ExtentMerge(long functionPointer)

Method Detail

createback to summary
public static ExtentMerge create(long functionPointer)

Creates a ExtentMerge instance from the specified function pointer.

Returns:ExtentMerge

the new ExtentMerge

createback to summary
public static ExtentMerge create(ExtentMergeI instance)

Creates a ExtentMerge instance that delegates to the specified ExtentMergeI instance.

createSafeback to summary
public static ExtentMerge createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

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

private final Class ExtentMerge.Container

extends ExtentMerge
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final ExtentMergeI

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public boolean
invoke(long extent_hooks, long addr_a, long size_a, long addr_b, long size_b, boolean committed, int arena_ind)

Implements org.lwjgl.system.jemalloc.ExtentMergeI.invoke.

Extent merge hook.
Inherited from org.lwjgl.system.jemalloc.ExtentMerge:
createcreatecreateSafe

Field Detail

delegateback to summary
private final ExtentMergeI delegate

Constructor Detail

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

Method Detail

invokeback to summary
public boolean invoke(long extent_hooks, long addr_a, long size_a, long addr_b, long size_b, boolean committed, int arena_ind)

Implements org.lwjgl.system.jemalloc.ExtentMergeI.invoke.

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

Extent merge hook.

An extent merge function conforms to the extent_merge_t type and optionally merges adjacent extents, at given addr_a and size_a with given addr_b and size_b into one contiguous extent, operating on committed/decommitted memory as indicated, on behalf of arena arena_ind, returning false upon success. If the function returns true, this indicates that the extents remain distinct mappings and therefore should continue to be operated on independently.

Annotations
@Override