Package org.lwjgl.system.jemalloc
Class JEmalloc
java.lang.Object
org.lwjgl.system.jemalloc.JEmalloc
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classContains the function pointers loaded from the jemallocSharedLibrary. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic SharedLibraryReturns the jemallocSharedLibrary.static @Nullable ByteBufferje_aligned_alloc(long alignment, long size) void * je_aligned_alloc(size_t alignment, size_t size)static @Nullable ByteBufferje_calloc(long num, long size) void * je_calloc(size_t num, size_t size)static voidje_dallocx(ByteBuffer ptr, int flags) void je_dallocx(void * ptr, int flags)static voidje_dallocx(DoubleBuffer ptr, int flags) void je_dallocx(void * ptr, int flags)static voidje_dallocx(FloatBuffer ptr, int flags) void je_dallocx(void * ptr, int flags)static voidje_dallocx(IntBuffer ptr, int flags) void je_dallocx(void * ptr, int flags)static voidje_dallocx(LongBuffer ptr, int flags) void je_dallocx(void * ptr, int flags)static voidje_dallocx(ShortBuffer ptr, int flags) void je_dallocx(void * ptr, int flags)static voidje_dallocx(PointerBuffer ptr, int flags) void je_dallocx(void * ptr, int flags)static voidje_free(@Nullable ByteBuffer ptr) void je_free(void * ptr)static voidje_free(@Nullable DoubleBuffer ptr) void je_free(void * ptr)static voidje_free(@Nullable FloatBuffer ptr) void je_free(void * ptr)static voidvoid je_free(void * ptr)static voidje_free(@Nullable LongBuffer ptr) void je_free(void * ptr)static voidje_free(@Nullable ShortBuffer ptr) void je_free(void * ptr)static voidje_free(@Nullable PointerBuffer ptr) void je_free(void * ptr)static voidje_free_aligned_sized(@Nullable ByteBuffer ptr, long alignment) void je_free_aligned_sized(void * ptr, size_t alignment, size_t size)static voidje_free_aligned_sized(@Nullable DoubleBuffer ptr, long alignment) void je_free_aligned_sized(void * ptr, size_t alignment, size_t size)static voidje_free_aligned_sized(@Nullable FloatBuffer ptr, long alignment) void je_free_aligned_sized(void * ptr, size_t alignment, size_t size)static voidje_free_aligned_sized(@Nullable IntBuffer ptr, long alignment) void je_free_aligned_sized(void * ptr, size_t alignment, size_t size)static voidje_free_aligned_sized(@Nullable LongBuffer ptr, long alignment) void je_free_aligned_sized(void * ptr, size_t alignment, size_t size)static voidje_free_aligned_sized(@Nullable ShortBuffer ptr, long alignment) void je_free_aligned_sized(void * ptr, size_t alignment, size_t size)static voidje_free_aligned_sized(@Nullable PointerBuffer ptr, long alignment) void je_free_aligned_sized(void * ptr, size_t alignment, size_t size)static voidje_free_sized(@Nullable ByteBuffer ptr) void je_free_sized(void * ptr, size_t size)static voidje_free_sized(@Nullable DoubleBuffer ptr) void je_free_sized(void * ptr, size_t size)static voidje_free_sized(@Nullable FloatBuffer ptr) void je_free_sized(void * ptr, size_t size)static voidje_free_sized(@Nullable IntBuffer ptr) void je_free_sized(void * ptr, size_t size)static voidje_free_sized(@Nullable LongBuffer ptr) void je_free_sized(void * ptr, size_t size)static voidje_free_sized(@Nullable ShortBuffer ptr) void je_free_sized(void * ptr, size_t size)static voidje_free_sized(@Nullable PointerBuffer ptr) void je_free_sized(void * ptr, size_t size)static intje_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 intje_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 intje_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 intje_mallctlnametomib(CharSequence name, PointerBuffer mibp, PointerBuffer miblenp) int je_mallctlnametomib(char const * name, size_t * mibp, size_t * miblenp)static intje_mallctlnametomib(ByteBuffer name, PointerBuffer mibp, PointerBuffer miblenp) int je_mallctlnametomib(char const * name, size_t * mibp, size_t * miblenp)static @Nullable ByteBufferje_malloc(long size) void * je_malloc(size_t size)static PointerBuffervoid (*) (void *, char const *) * je_malloc_message(void)static voidje_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 voidje_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 longsize_t je_malloc_usable_size(void const * ptr)static @Nullable ByteBufferje_mallocx(long size, int flags) void * je_mallocx(size_t size, int flags)static @Nullable ByteBufferje_nallocx(long size, int flags) void * je_nallocx(size_t size, int flags)static intje_posix_memalign(PointerBuffer memptr, long alignment, long size) int je_posix_memalign(void ** memptr, size_t alignment, size_t size)static @Nullable ByteBufferje_rallocx(@Nullable ByteBuffer ptr, long size, int flags) void * je_rallocx(void * ptr, size_t size, int flags)static @Nullable ByteBufferje_realloc(@Nullable ByteBuffer ptr, long size) void * je_realloc(void * ptr, size_t size)static longje_sallocx(ByteBuffer ptr, int flags) size_t je_sallocx(void const * ptr, int flags)static voidje_sdallocx(ByteBuffer ptr, int flags) void je_sdallocx(void * ptr, size_t size, int flags)static voidje_sdallocx(DoubleBuffer ptr, int flags) void je_sdallocx(void * ptr, size_t size, int flags)static voidje_sdallocx(FloatBuffer ptr, int flags) void je_sdallocx(void * ptr, size_t size, int flags)static voidje_sdallocx(IntBuffer ptr, int flags) void je_sdallocx(void * ptr, size_t size, int flags)static voidje_sdallocx(LongBuffer ptr, int flags) void je_sdallocx(void * ptr, size_t size, int flags)static voidje_sdallocx(ShortBuffer ptr, int flags) void je_sdallocx(void * ptr, size_t size, int flags)static voidje_sdallocx(PointerBuffer ptr, int flags) void je_sdallocx(void * ptr, size_t size, int flags)static longje_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 intMALLOCX_ALIGN(int a) Align the memory allocation to start at an address that is a multiple ofa, whereais a power of two.static intMALLOCX_ARENA(int a) Use the arena specified by the indexa(and by necessity bypass the thread cache).static intMALLOCX_LG_ALIGN(int la) Align the memory allocation to start at an address that is a multiple of(1 << la).static intMALLOCX_TCACHE(int tc) Use the thread-specific cache (tcache) specified by the identifiertc, which must have been acquired via thetcache.createmallctl.static longnje_aligned_alloc(long alignment, long size) void * je_aligned_alloc(size_t alignment, size_t size)static longnje_calloc(long num, long size) void * je_calloc(size_t num, size_t size)static voidnje_dallocx(long ptr, int flags) void je_dallocx(void * ptr, int flags)static voidnje_free(long ptr) void je_free(void * ptr)static voidnje_free_aligned_sized(long ptr, long alignment, long size) void je_free_aligned_sized(void * ptr, size_t alignment, size_t size)static voidnje_free_sized(long ptr, long size) void je_free_sized(void * ptr, size_t size)static intnje_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 intnje_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 intnje_mallctlnametomib(long name, long mibp, long miblenp) int je_mallctlnametomib(char const * name, size_t * mibp, size_t * miblenp)static longnje_malloc(long size) void * je_malloc(size_t size)static voidnje_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 longnje_malloc_usable_size(long ptr) size_t je_malloc_usable_size(void const * ptr)static longnje_mallocx(long size, int flags) void * je_mallocx(size_t size, int flags)static longnje_nallocx(long size, int flags) void * je_nallocx(size_t size, int flags)static intnje_posix_memalign(long memptr, long alignment, long size) int je_posix_memalign(void ** memptr, size_t alignment, size_t size)static longnje_rallocx(long ptr, long size, int flags) void * je_rallocx(void * ptr, size_t size, int flags)static longnje_realloc(long ptr, long size) void * je_realloc(void * ptr, size_t size)static longnje_sallocx(long ptr, int flags) size_t je_sallocx(void const * ptr, int flags)static voidnje_sdallocx(long ptr, long size, int flags) void je_sdallocx(void * ptr, size_t size, int flags)static longnje_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 thatlais 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, whereais a power of two. This macro does not validate thatais 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.createmallctl. This macro does not validate thattcspecifies 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 thataspecifies an arena index in the valid range.- Parameters:
a- the arena index
-