Package org.lwjgl.system.jemalloc
Class JEmalloc
java.lang.Object
org.lwjgl.system.jemalloc.JEmalloc
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Contains the function pointers loaded from the jemallocSharedLibrary
. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic SharedLibrary
Returns the jemallocSharedLibrary
.static @Nullable ByteBuffer
je_aligned_alloc
(long alignment, long size) void * je_aligned_alloc(size_t alignment, size_t size)
static @Nullable ByteBuffer
je_calloc
(long num, long size) void * je_calloc(size_t num, size_t size)
static void
je_dallocx
(ByteBuffer ptr, int flags) void je_dallocx(void * ptr, int flags)
static void
je_dallocx
(DoubleBuffer ptr, int flags) void je_dallocx(void * ptr, int flags)
static void
je_dallocx
(FloatBuffer ptr, int flags) void je_dallocx(void * ptr, int flags)
static void
je_dallocx
(IntBuffer ptr, int flags) void je_dallocx(void * ptr, int flags)
static void
je_dallocx
(LongBuffer ptr, int flags) void je_dallocx(void * ptr, int flags)
static void
je_dallocx
(ShortBuffer ptr, int flags) void je_dallocx(void * ptr, int flags)
static void
je_dallocx
(PointerBuffer ptr, int flags) void je_dallocx(void * ptr, int flags)
static void
je_free
(@Nullable ByteBuffer ptr) void je_free(void * ptr)
static void
je_free
(@Nullable DoubleBuffer ptr) void je_free(void * ptr)
static void
je_free
(@Nullable FloatBuffer ptr) void je_free(void * ptr)
static void
void je_free(void * ptr)
static void
je_free
(@Nullable LongBuffer ptr) void je_free(void * ptr)
static void
je_free
(@Nullable ShortBuffer ptr) void je_free(void * ptr)
static void
je_free
(@Nullable PointerBuffer ptr) void je_free(void * ptr)
static void
je_free_aligned_sized
(@Nullable ByteBuffer ptr, long alignment) void je_free_aligned_sized(void * ptr, size_t alignment, size_t size)
static void
je_free_aligned_sized
(@Nullable DoubleBuffer ptr, long alignment) void je_free_aligned_sized(void * ptr, size_t alignment, size_t size)
static void
je_free_aligned_sized
(@Nullable FloatBuffer ptr, long alignment) void je_free_aligned_sized(void * ptr, size_t alignment, size_t size)
static void
je_free_aligned_sized
(@Nullable IntBuffer ptr, long alignment) void je_free_aligned_sized(void * ptr, size_t alignment, size_t size)
static void
je_free_aligned_sized
(@Nullable LongBuffer ptr, long alignment) void je_free_aligned_sized(void * ptr, size_t alignment, size_t size)
static void
je_free_aligned_sized
(@Nullable ShortBuffer ptr, long alignment) void je_free_aligned_sized(void * ptr, size_t alignment, size_t size)
static void
je_free_aligned_sized
(@Nullable PointerBuffer ptr, long alignment) void je_free_aligned_sized(void * ptr, size_t alignment, size_t size)
static void
je_free_sized
(@Nullable ByteBuffer ptr) void je_free_sized(void * ptr, size_t size)
static void
je_free_sized
(@Nullable DoubleBuffer ptr) void je_free_sized(void * ptr, size_t size)
static void
je_free_sized
(@Nullable FloatBuffer ptr) void je_free_sized(void * ptr, size_t size)
static void
je_free_sized
(@Nullable IntBuffer ptr) void je_free_sized(void * ptr, size_t size)
static void
je_free_sized
(@Nullable LongBuffer ptr) void je_free_sized(void * ptr, size_t size)
static void
je_free_sized
(@Nullable ShortBuffer ptr) void je_free_sized(void * ptr, size_t size)
static void
je_free_sized
(@Nullable PointerBuffer ptr) void je_free_sized(void * ptr, size_t size)
static int
je_mallctl
(CharSequence name, @Nullable ByteBuffer oldp, @Nullable PointerBuffer oldlenp, @Nullable ByteBuffer newp) int je_mallctl(char const * name, void * oldp, size_t * oldlenp, void * newp, size_t newlen)
static int
je_mallctl
(ByteBuffer name, @Nullable ByteBuffer oldp, @Nullable PointerBuffer oldlenp, @Nullable ByteBuffer newp) int je_mallctl(char const * name, void * oldp, size_t * oldlenp, void * newp, size_t newlen)
static int
je_mallctlbymib
(PointerBuffer mib, @Nullable ByteBuffer oldp, @Nullable PointerBuffer oldlenp, @Nullable ByteBuffer newp) int je_mallctlbymib(size_t const * mib, size_t miblen, void * oldp, size_t * oldlenp, void * newp, size_t newlen)
static int
je_mallctlnametomib
(CharSequence name, PointerBuffer mibp, PointerBuffer miblenp) int je_mallctlnametomib(char const * name, size_t * mibp, size_t * miblenp)
static int
je_mallctlnametomib
(ByteBuffer name, PointerBuffer mibp, PointerBuffer miblenp) int je_mallctlnametomib(char const * name, size_t * mibp, size_t * miblenp)
static @Nullable ByteBuffer
je_malloc
(long size) void * je_malloc(size_t size)
static PointerBuffer
void (*) (void *, char const *) * je_malloc_message(void)
static void
je_malloc_stats_print
(@Nullable MallocMessageCallbackI write_cb, long cbopaque, @Nullable CharSequence opts) void je_malloc_stats_print(void (*) (void *, char const *) write_cb, void * cbopaque, char const * opts)
static void
je_malloc_stats_print
(@Nullable MallocMessageCallbackI write_cb, long cbopaque, @Nullable ByteBuffer opts) void je_malloc_stats_print(void (*) (void *, char const *) write_cb, void * cbopaque, char const * opts)
static long
size_t je_malloc_usable_size(void const * ptr)
static @Nullable ByteBuffer
je_mallocx
(long size, int flags) void * je_mallocx(size_t size, int flags)
static @Nullable ByteBuffer
je_nallocx
(long size, int flags) void * je_nallocx(size_t size, int flags)
static int
je_posix_memalign
(PointerBuffer memptr, long alignment, long size) int je_posix_memalign(void ** memptr, size_t alignment, size_t size)
static @Nullable ByteBuffer
je_rallocx
(@Nullable ByteBuffer ptr, long size, int flags) void * je_rallocx(void * ptr, size_t size, int flags)
static @Nullable ByteBuffer
je_realloc
(@Nullable ByteBuffer ptr, long size) void * je_realloc(void * ptr, size_t size)
static long
je_sallocx
(ByteBuffer ptr, int flags) size_t je_sallocx(void const * ptr, int flags)
static void
je_sdallocx
(ByteBuffer ptr, int flags) void je_sdallocx(void * ptr, size_t size, int flags)
static void
je_sdallocx
(DoubleBuffer ptr, int flags) void je_sdallocx(void * ptr, size_t size, int flags)
static void
je_sdallocx
(FloatBuffer ptr, int flags) void je_sdallocx(void * ptr, size_t size, int flags)
static void
je_sdallocx
(IntBuffer ptr, int flags) void je_sdallocx(void * ptr, size_t size, int flags)
static void
je_sdallocx
(LongBuffer ptr, int flags) void je_sdallocx(void * ptr, size_t size, int flags)
static void
je_sdallocx
(ShortBuffer ptr, int flags) void je_sdallocx(void * ptr, size_t size, int flags)
static void
je_sdallocx
(PointerBuffer ptr, int flags) void je_sdallocx(void * ptr, size_t size, int flags)
static long
je_xallocx
(@Nullable ByteBuffer ptr, long size, long extra, int flags) size_t je_xallocx(void * ptr, size_t size, size_t extra, int flags)
static int
MALLOCX_ALIGN
(int a) Align the memory allocation to start at an address that is a multiple ofa
, wherea
is a power of two.static int
MALLOCX_ARENA
(int a) Use the arena specified by the indexa
(and by necessity bypass the thread cache).static int
MALLOCX_LG_ALIGN
(int la) Align the memory allocation to start at an address that is a multiple of(1 << la)
.static int
MALLOCX_TCACHE
(int tc) Use the thread-specific cache (tcache) specified by the identifiertc
, which must have been acquired via thetcache.create
mallctl.static long
nje_aligned_alloc
(long alignment, long size) void * je_aligned_alloc(size_t alignment, size_t size)
static long
nje_calloc
(long num, long size) void * je_calloc(size_t num, size_t size)
static void
nje_dallocx
(long ptr, int flags) void je_dallocx(void * ptr, int flags)
static void
nje_free
(long ptr) void je_free(void * ptr)
static void
nje_free_aligned_sized
(long ptr, long alignment, long size) void je_free_aligned_sized(void * ptr, size_t alignment, size_t size)
static void
nje_free_sized
(long ptr, long size) void je_free_sized(void * ptr, size_t size)
static int
nje_mallctl
(long name, long oldp, long oldlenp, long newp, long newlen) int je_mallctl(char const * name, void * oldp, size_t * oldlenp, void * newp, size_t newlen)
static int
nje_mallctlbymib
(long mib, long miblen, long oldp, long oldlenp, long newp, long newlen) int je_mallctlbymib(size_t const * mib, size_t miblen, void * oldp, size_t * oldlenp, void * newp, size_t newlen)
static int
nje_mallctlnametomib
(long name, long mibp, long miblenp) int je_mallctlnametomib(char const * name, size_t * mibp, size_t * miblenp)
static long
nje_malloc
(long size) void * je_malloc(size_t size)
static void
nje_malloc_stats_print
(long write_cb, long cbopaque, long opts) void je_malloc_stats_print(void (*) (void *, char const *) write_cb, void * cbopaque, char const * opts)
static long
nje_malloc_usable_size
(long ptr) size_t je_malloc_usable_size(void const * ptr)
static long
nje_mallocx
(long size, int flags) void * je_mallocx(size_t size, int flags)
static long
nje_nallocx
(long size, int flags) void * je_nallocx(size_t size, int flags)
static int
nje_posix_memalign
(long memptr, long alignment, long size) int je_posix_memalign(void ** memptr, size_t alignment, size_t size)
static long
nje_rallocx
(long ptr, long size, int flags) void * je_rallocx(void * ptr, size_t size, int flags)
static long
nje_realloc
(long ptr, long size) void * je_realloc(void * ptr, size_t size)
static long
nje_sallocx
(long ptr, int flags) size_t je_sallocx(void const * ptr, int flags)
static void
nje_sdallocx
(long ptr, long size, int flags) void je_sdallocx(void * ptr, size_t size, int flags)
static long
nje_xallocx
(long ptr, long size, long extra, int flags) size_t je_xallocx(void * ptr, size_t size, size_t extra, int flags)
-
Field Details
-
JEMALLOC_VERSION_MAJOR
public static final int JEMALLOC_VERSION_MAJOR- See Also:
-
JEMALLOC_VERSION_MINOR
public static final int JEMALLOC_VERSION_MINOR- See Also:
-
JEMALLOC_VERSION_BUGFIX
public static final int JEMALLOC_VERSION_BUGFIX- See Also:
-
JEMALLOC_VERSION_NREV
public static final int JEMALLOC_VERSION_NREV- See Also:
-
JEMALLOC_VERSION_GID
- See Also:
-
JEMALLOC_VERSION
- See Also:
-
MALLOCX_ZERO
public static final int MALLOCX_ZERO- See Also:
-
MALLOCX_TCACHE_NONE
public static final int MALLOCX_TCACHE_NONE -
MALLCTL_ARENAS_ALL
public static final int MALLCTL_ARENAS_ALL- See Also:
-
MALLCTL_ARENAS_DESTROYED
public static final int MALLCTL_ARENAS_DESTROYED- See Also:
-
-
Method Details
-
getLibrary
Returns the jemallocSharedLibrary
. -
je_malloc_message
void (*) (void *, char const *) * je_malloc_message(void)
-
nje_malloc
public static long nje_malloc(long size) void * je_malloc(size_t size)
-
je_malloc
void * je_malloc(size_t size)
-
nje_calloc
public static long nje_calloc(long num, long size) void * je_calloc(size_t num, size_t size)
-
je_calloc
void * je_calloc(size_t num, size_t size)
-
nje_posix_memalign
public static int nje_posix_memalign(long memptr, long alignment, long size) int je_posix_memalign(void ** memptr, size_t alignment, size_t size)
-
je_posix_memalign
int je_posix_memalign(void ** memptr, size_t alignment, size_t size)
-
nje_aligned_alloc
public static long nje_aligned_alloc(long alignment, long size) void * je_aligned_alloc(size_t alignment, size_t size)
-
je_aligned_alloc
void * je_aligned_alloc(size_t alignment, size_t size)
-
nje_realloc
public static long nje_realloc(long ptr, long size) void * je_realloc(void * ptr, size_t size)
-
je_realloc
void * je_realloc(void * ptr, size_t size)
-
nje_free
public static void nje_free(long ptr) void je_free(void * ptr)
-
je_free
void je_free(void * ptr)
-
je_free
void je_free(void * ptr)
-
je_free
void je_free(void * ptr)
-
je_free
void je_free(void * ptr)
-
je_free
void je_free(void * ptr)
-
je_free
void je_free(void * ptr)
-
je_free
void je_free(void * ptr)
-
nje_free_sized
public static void nje_free_sized(long ptr, long size) void je_free_sized(void * ptr, size_t size)
-
je_free_sized
void je_free_sized(void * ptr, size_t size)
-
je_free_sized
void je_free_sized(void * ptr, size_t size)
-
je_free_sized
void je_free_sized(void * ptr, size_t size)
-
je_free_sized
void je_free_sized(void * ptr, size_t size)
-
je_free_sized
void je_free_sized(void * ptr, size_t size)
-
je_free_sized
void je_free_sized(void * ptr, size_t size)
-
je_free_sized
void je_free_sized(void * ptr, size_t size)
-
nje_free_aligned_sized
public static void nje_free_aligned_sized(long ptr, long alignment, long size) void je_free_aligned_sized(void * ptr, size_t alignment, size_t size)
-
je_free_aligned_sized
void je_free_aligned_sized(void * ptr, size_t alignment, size_t size)
-
je_free_aligned_sized
void je_free_aligned_sized(void * ptr, size_t alignment, size_t size)
-
je_free_aligned_sized
void je_free_aligned_sized(void * ptr, size_t alignment, size_t size)
-
je_free_aligned_sized
void je_free_aligned_sized(void * ptr, size_t alignment, size_t size)
-
je_free_aligned_sized
void je_free_aligned_sized(void * ptr, size_t alignment, size_t size)
-
je_free_aligned_sized
void je_free_aligned_sized(void * ptr, size_t alignment, size_t size)
-
je_free_aligned_sized
void je_free_aligned_sized(void * ptr, size_t alignment, size_t size)
-
nje_mallocx
public static long nje_mallocx(long size, int flags) void * je_mallocx(size_t size, int flags)
-
je_mallocx
void * je_mallocx(size_t size, int flags)
-
nje_rallocx
public static long nje_rallocx(long ptr, long size, int flags) void * je_rallocx(void * ptr, size_t size, int flags)
-
je_rallocx
void * je_rallocx(void * ptr, size_t size, int flags)
-
nje_xallocx
public static long nje_xallocx(long ptr, long size, long extra, int flags) size_t je_xallocx(void * ptr, size_t size, size_t extra, int flags)
-
je_xallocx
size_t je_xallocx(void * ptr, size_t size, size_t extra, int flags)
-
nje_sallocx
public static long nje_sallocx(long ptr, int flags) size_t je_sallocx(void const * ptr, int flags)
-
je_sallocx
size_t je_sallocx(void const * ptr, int flags)
-
nje_dallocx
public static void nje_dallocx(long ptr, int flags) void je_dallocx(void * ptr, int flags)
-
je_dallocx
void je_dallocx(void * ptr, int flags)
-
je_dallocx
void je_dallocx(void * ptr, int flags)
-
je_dallocx
void je_dallocx(void * ptr, int flags)
-
je_dallocx
void je_dallocx(void * ptr, int flags)
-
je_dallocx
void je_dallocx(void * ptr, int flags)
-
je_dallocx
void je_dallocx(void * ptr, int flags)
-
je_dallocx
void je_dallocx(void * ptr, int flags)
-
nje_sdallocx
public static void nje_sdallocx(long ptr, long size, int flags) void je_sdallocx(void * ptr, size_t size, int flags)
-
je_sdallocx
void je_sdallocx(void * ptr, size_t size, int flags)
-
je_sdallocx
void je_sdallocx(void * ptr, size_t size, int flags)
-
je_sdallocx
void je_sdallocx(void * ptr, size_t size, int flags)
-
je_sdallocx
void je_sdallocx(void * ptr, size_t size, int flags)
-
je_sdallocx
void je_sdallocx(void * ptr, size_t size, int flags)
-
je_sdallocx
void je_sdallocx(void * ptr, size_t size, int flags)
-
je_sdallocx
void je_sdallocx(void * ptr, size_t size, int flags)
-
nje_nallocx
public static long nje_nallocx(long size, int flags) void * je_nallocx(size_t size, int flags)
-
je_nallocx
void * je_nallocx(size_t size, int flags)
-
nje_mallctl
public static int nje_mallctl(long name, long oldp, long oldlenp, long newp, long newlen) int je_mallctl(char const * name, void * oldp, size_t * oldlenp, void * newp, size_t newlen)
-
je_mallctl
public static int je_mallctl(ByteBuffer name, @Nullable ByteBuffer oldp, @Nullable PointerBuffer oldlenp, @Nullable ByteBuffer newp) int je_mallctl(char const * name, void * oldp, size_t * oldlenp, void * newp, size_t newlen)
-
je_mallctl
public static int je_mallctl(CharSequence name, @Nullable ByteBuffer oldp, @Nullable PointerBuffer oldlenp, @Nullable ByteBuffer newp) int je_mallctl(char const * name, void * oldp, size_t * oldlenp, void * newp, size_t newlen)
-
nje_mallctlnametomib
public static int nje_mallctlnametomib(long name, long mibp, long miblenp) int je_mallctlnametomib(char const * name, size_t * mibp, size_t * miblenp)
-
je_mallctlnametomib
int je_mallctlnametomib(char const * name, size_t * mibp, size_t * miblenp)
-
je_mallctlnametomib
int je_mallctlnametomib(char const * name, size_t * mibp, size_t * miblenp)
-
nje_mallctlbymib
public static int nje_mallctlbymib(long mib, long miblen, long oldp, long oldlenp, long newp, long newlen) int je_mallctlbymib(size_t const * mib, size_t miblen, void * oldp, size_t * oldlenp, void * newp, size_t newlen)
-
je_mallctlbymib
public static int je_mallctlbymib(PointerBuffer mib, @Nullable ByteBuffer oldp, @Nullable PointerBuffer oldlenp, @Nullable ByteBuffer newp) int je_mallctlbymib(size_t const * mib, size_t miblen, void * oldp, size_t * oldlenp, void * newp, size_t newlen)
-
nje_malloc_stats_print
public static void nje_malloc_stats_print(long write_cb, long cbopaque, long opts) void je_malloc_stats_print(void (*) (void *, char const *) write_cb, void * cbopaque, char const * opts)
-
je_malloc_stats_print
public static void je_malloc_stats_print(@Nullable MallocMessageCallbackI write_cb, long cbopaque, @Nullable ByteBuffer opts) void je_malloc_stats_print(void (*) (void *, char const *) write_cb, void * cbopaque, char const * opts)
-
je_malloc_stats_print
public static void je_malloc_stats_print(@Nullable MallocMessageCallbackI write_cb, long cbopaque, @Nullable CharSequence opts) void je_malloc_stats_print(void (*) (void *, char const *) write_cb, void * cbopaque, char const * opts)
-
nje_malloc_usable_size
public static long nje_malloc_usable_size(long ptr) size_t je_malloc_usable_size(void const * ptr)
-
je_malloc_usable_size
size_t je_malloc_usable_size(void const * ptr)
-
MALLOCX_LG_ALIGN
public static int MALLOCX_LG_ALIGN(int la) Align the memory allocation to start at an address that is a multiple of(1 << la)
. This macro does not validate thatla
is within the valid range.- Parameters:
la
- the alignment shift
-
MALLOCX_ALIGN
public static int MALLOCX_ALIGN(int a) Align the memory allocation to start at an address that is a multiple ofa
, wherea
is a power of two. This macro does not validate thata
is a power of 2.- Parameters:
a
- the alignment
-
MALLOCX_TCACHE
public static int MALLOCX_TCACHE(int tc) Use the thread-specific cache (tcache) specified by the identifiertc
, which must have been acquired via thetcache.create
mallctl. This macro does not validate thattc
specifies a valid identifier.- Parameters:
tc
- the thread-specific cache
-
MALLOCX_ARENA
public static int MALLOCX_ARENA(int a) Use the arena specified by the indexa
(and by necessity bypass the thread cache). This macro has no effect for huge regions, nor for regions that were allocated via an arena other than the one specified. This macro does not validate thata
specifies an arena index in the valid range.- Parameters:
a
- the arena index
-