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.
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:
- --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.
-
ClassDescriptionInstances of this class may be set to the
ExtentHooksstruct.Instances of this interface may be set to theExtentHooksstruct.Instances of this class may be set to theExtentHooksstruct.Instances of this interface may be set to theExtentHooksstruct.Instances of this class may be set to theExtentHooksstruct.Instances of this interface may be set to theExtentHooksstruct.Instances of this class may be set to theExtentHooksstruct.Instances of this interface may be set to theExtentHooksstruct.Instances of this class may be set to theExtentHooksstruct.Instances of this interface may be set to theExtentHooksstruct.Theextent_hooks_tstructure comprises function pointers which are described individually below.Instances of this class may be set to theExtentHooksstruct.Instances of this interface may be set to theExtentHooksstruct.Instances of this class may be set to theExtentHooksstruct.Instances of this interface may be set to theExtentHooksstruct.Instances of this class may be set to theExtentHooksstruct.Instances of this interface may be set to theExtentHooksstruct.Native bindings to jemalloc.Contains the function pointers loaded from the jemallocSharedLibrary.AMemoryUtil.MemoryAllocatorimplementation using the jemalloc library.Instances of this class may be passed to themalloc_usable_sizemethod.Instances of this interface may be passed to themalloc_usable_sizemethod.