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

public abstract Class ExtentPurge

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

Method Summary

Modifier and TypeMethod and Description
public static ExtentPurge

Returns:

the new ExtentPurge
create
(long functionPointer)

Creates a ExtentPurge instance from the specified function pointer.

public static ExtentPurge
create(ExtentPurgeI instance)

Creates a ExtentPurge instance that delegates to the specified ExtentPurgeI instance.

public static ExtentPurge
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

ExtentPurgeback to summary
protected ExtentPurge()
ExtentPurgeback to summary
pack-priv ExtentPurge(long functionPointer)

Method Detail

createback to summary
public static ExtentPurge create(long functionPointer)

Creates a ExtentPurge instance from the specified function pointer.

Returns:ExtentPurge

the new ExtentPurge

createback to summary
public static ExtentPurge create(ExtentPurgeI instance)

Creates a ExtentPurge instance that delegates to the specified ExtentPurgeI instance.

createSafeback to summary
public static ExtentPurge createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

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

private final Class ExtentPurge.Container

extends ExtentPurge
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final ExtentPurgeI

Constructor Summary

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

Extent purge hook.
Inherited from org.lwjgl.system.jemalloc.ExtentPurge:
createcreatecreateSafe

Field Detail

delegateback to summary
private final ExtentPurgeI delegate

Constructor Detail

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

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

Extent purge hook.

An extent purge function conforms to the extent_purge_t type and discards physical pages within the virtual memory mapping associated with an extent at given addr and size at offset bytes, extending for length on behalf of arena arena_ind. A lazy extent purge function (e.g. implemented via madvise(..., MADV_FREE)) can delay purging indefinitely and leave the pages within the purged virtual memory range in an indeterminite state, whereas a forced extent purge function immediately purges, and the pages within the virtual memory range will be zero-filled the next time they are accessed. If the function returns true, this indicates failure to purge.

Annotations
@Override