Package org.lwjgl.system.jemalloc
@NullMarked
package org.lwjgl.system.jemalloc
Contains bindings to the jemalloc library. jemalloc is a general purpose malloc implementation that emphasizes
fragmentation avoidance and scalable concurrency support.
Resources
The jemalloc shared library that comes with LWJGL is configured with:
- --with-jemalloc-prefix=je_
- --enable-lazy-lock=no (FreeBSD)
- --disable-stats
- --disable-fill
- --disable-cxx
- --disable-initial-exec-tls (FreeBSD, Linux & macOS)
- --disable-zone-allocator (macOS)
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.
Resources 
-
ClassDescriptionCallback function:
extent_alloc_t
Callback function:extent_alloc_t
Callback function:extent_commit_t
Callback function:extent_commit_t
Callback function:extent_dalloc_t
Callback function:extent_dalloc_t
Callback function:extent_decommit_t
Callback function:extent_decommit_t
Callback function:extent_destroy_t
Callback function:extent_destroy_t
struct extent_hooks_t { {@link ExtentAllocI extent_alloc_t} alloc; {@link ExtentDallocI extent_dalloc_t} dalloc; {@link ExtentDestroyI extent_destroy_t} destroy; {@link ExtentCommitI extent_commit_t} commit; {@link ExtentDecommitI extent_decommit_t} decommit; {@link ExtentPurgeI extent_purge_t} purge_lazy; {@link ExtentPurgeI extent_purge_t} purge_forced; {@link ExtentSplitI extent_split_t} split; {@link ExtentMergeI extent_merge_t} merge; }
Callback function:extent_merge_t
Callback function:extent_merge_t
Callback function:extent_purge_t
Callback function:extent_purge_t
Callback function:extent_split_t
Callback function:extent_split_t
Contains the function pointers loaded from the jemallocSharedLibrary
.Callback function:(* anonymous)
Callback function:(* anonymous)