Top Description Interfaces Classes
module lwjgl.jemalloc

Package org.lwjgl.system.jemalloc

Annotations
@NonnullDefault

Contains bindings to the jemalloc library. jemalloc is a general purpose malloc implementation that emphasizes fragmentation avoidance and scalable concurrency support.

The jemalloc documentation can be found here. The jemalloc wiki also contains useful information.

The jemalloc shared library that comes with LWJGL is configured with:

The shared library may be replaced with a custom build that has more features enabled.

Dynamic configuration (for enabled features) is also possible, using either the MALLOC_CONF environment variable or the MALLCTL NAMESPACE and the mallctl* functions.

Interface Summary

Modifier and TypeInterface and Description
public interface
ExtentAllocI

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

public interface
ExtentCommitI

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

public interface
ExtentDallocI

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

public interface
ExtentDecommitI

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

public interface
ExtentDestroyI

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

public interface
ExtentMergeI

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

public interface
ExtentPurgeI

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

public interface
ExtentSplitI

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

public interface
MallocMessageCallbackI

Instances of this interface may be passed to the malloc_usable_size method.

Class Summary

Modifier and TypeClass and Description
public abstract class
ExtentAlloc

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

public abstract class
ExtentCommit

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

public abstract class
ExtentDalloc

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

public abstract class
ExtentDecommit

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

public abstract class
ExtentDestroy

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

public class
ExtentHooks

The extent_hooks_t structure comprises function pointers which are described individually below.

public abstract class
ExtentMerge

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

public abstract class
ExtentPurge

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

public abstract class
ExtentSplit

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

public class
JEmalloc

Native bindings to jemalloc.

public class
JEmallocAllocator

A MemoryAllocator implementation using the jemalloc library.

public abstract class
MallocMessageCallback

Instances of this class may be passed to the malloc_usable_size method.