Class JEmalloc

java.lang.Object
org.lwjgl.system.jemalloc.JEmalloc

public class JEmalloc extends Object
  • Field Details

  • Method Details

    • getLibrary

      public static SharedLibrary getLibrary()
      Returns the jemalloc SharedLibrary.
    • je_malloc_message

      public static PointerBuffer 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

      public static @Nullable ByteBuffer je_malloc(long size)
      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

      public static @Nullable ByteBuffer je_calloc(long num, long size)
      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

      public static int je_posix_memalign(PointerBuffer memptr, long alignment, long size)
      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

      public static @Nullable ByteBuffer je_aligned_alloc(long alignment, long size)
      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

      public static @Nullable ByteBuffer je_realloc(@Nullable ByteBuffer ptr, long size)
      void * je_realloc(void * ptr, size_t size)
    • nje_free

      public static void nje_free(long ptr)
      void je_free(void * ptr)
    • je_free

      public static void je_free(@Nullable ByteBuffer ptr)
      void je_free(void * ptr)
    • je_free

      public static void je_free(@Nullable ShortBuffer ptr)
      void je_free(void * ptr)
    • je_free

      public static void je_free(@Nullable IntBuffer ptr)
      void je_free(void * ptr)
    • je_free

      public static void je_free(@Nullable LongBuffer ptr)
      void je_free(void * ptr)
    • je_free

      public static void je_free(@Nullable FloatBuffer ptr)
      void je_free(void * ptr)
    • je_free

      public static void je_free(@Nullable DoubleBuffer ptr)
      void je_free(void * ptr)
    • je_free

      public static void je_free(@Nullable PointerBuffer ptr)
      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

      public static void je_free_sized(@Nullable ByteBuffer ptr)
      void je_free_sized(void * ptr, size_t size)
    • je_free_sized

      public static void je_free_sized(@Nullable ShortBuffer ptr)
      void je_free_sized(void * ptr, size_t size)
    • je_free_sized

      public static void je_free_sized(@Nullable IntBuffer ptr)
      void je_free_sized(void * ptr, size_t size)
    • je_free_sized

      public static void je_free_sized(@Nullable LongBuffer ptr)
      void je_free_sized(void * ptr, size_t size)
    • je_free_sized

      public static void je_free_sized(@Nullable FloatBuffer ptr)
      void je_free_sized(void * ptr, size_t size)
    • je_free_sized

      public static void je_free_sized(@Nullable DoubleBuffer ptr)
      void je_free_sized(void * ptr, size_t size)
    • je_free_sized

      public static void je_free_sized(@Nullable PointerBuffer ptr)
      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

      public static void je_free_aligned_sized(@Nullable ByteBuffer ptr, long alignment)
      void je_free_aligned_sized(void * ptr, size_t alignment, size_t size)
    • je_free_aligned_sized

      public static void je_free_aligned_sized(@Nullable ShortBuffer ptr, long alignment)
      void je_free_aligned_sized(void * ptr, size_t alignment, size_t size)
    • je_free_aligned_sized

      public static void je_free_aligned_sized(@Nullable IntBuffer ptr, long alignment)
      void je_free_aligned_sized(void * ptr, size_t alignment, size_t size)
    • je_free_aligned_sized

      public static void je_free_aligned_sized(@Nullable LongBuffer ptr, long alignment)
      void je_free_aligned_sized(void * ptr, size_t alignment, size_t size)
    • je_free_aligned_sized

      public static void je_free_aligned_sized(@Nullable FloatBuffer ptr, long alignment)
      void je_free_aligned_sized(void * ptr, size_t alignment, size_t size)
    • je_free_aligned_sized

      public static void je_free_aligned_sized(@Nullable DoubleBuffer ptr, long alignment)
      void je_free_aligned_sized(void * ptr, size_t alignment, size_t size)
    • je_free_aligned_sized

      public static void je_free_aligned_sized(@Nullable PointerBuffer ptr, long alignment)
      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

      public static @Nullable ByteBuffer je_mallocx(long size, int flags)
      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

      public static @Nullable ByteBuffer je_rallocx(@Nullable ByteBuffer ptr, long size, int flags)
      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

      public 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)
    • nje_sallocx

      public static long nje_sallocx(long ptr, int flags)
      size_t je_sallocx(void const * ptr, int flags)
    • je_sallocx

      public static long je_sallocx(ByteBuffer ptr, int flags)
      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

      public static void je_dallocx(ByteBuffer ptr, int flags)
      void je_dallocx(void * ptr, int flags)
    • je_dallocx

      public static void je_dallocx(ShortBuffer ptr, int flags)
      void je_dallocx(void * ptr, int flags)
    • je_dallocx

      public static void je_dallocx(IntBuffer ptr, int flags)
      void je_dallocx(void * ptr, int flags)
    • je_dallocx

      public static void je_dallocx(LongBuffer ptr, int flags)
      void je_dallocx(void * ptr, int flags)
    • je_dallocx

      public static void je_dallocx(FloatBuffer ptr, int flags)
      void je_dallocx(void * ptr, int flags)
    • je_dallocx

      public static void je_dallocx(DoubleBuffer ptr, int flags)
      void je_dallocx(void * ptr, int flags)
    • je_dallocx

      public static void je_dallocx(PointerBuffer ptr, int flags)
      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

      public static void je_sdallocx(ByteBuffer ptr, int flags)
      void je_sdallocx(void * ptr, size_t size, int flags)
    • je_sdallocx

      public static void je_sdallocx(ShortBuffer ptr, int flags)
      void je_sdallocx(void * ptr, size_t size, int flags)
    • je_sdallocx

      public static void je_sdallocx(IntBuffer ptr, int flags)
      void je_sdallocx(void * ptr, size_t size, int flags)
    • je_sdallocx

      public static void je_sdallocx(LongBuffer ptr, int flags)
      void je_sdallocx(void * ptr, size_t size, int flags)
    • je_sdallocx

      public static void je_sdallocx(FloatBuffer ptr, int flags)
      void je_sdallocx(void * ptr, size_t size, int flags)
    • je_sdallocx

      public static void je_sdallocx(DoubleBuffer ptr, int flags)
      void je_sdallocx(void * ptr, size_t size, int flags)
    • je_sdallocx

      public static void je_sdallocx(PointerBuffer ptr, int flags)
      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

      public static @Nullable ByteBuffer je_nallocx(long size, int flags)
      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

      public static int je_mallctlnametomib(ByteBuffer name, PointerBuffer mibp, PointerBuffer miblenp)
      int je_mallctlnametomib(char const * name, size_t * mibp, size_t * miblenp)
    • je_mallctlnametomib

      public static int je_mallctlnametomib(CharSequence name, PointerBuffer mibp, PointerBuffer miblenp)
      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

      public static long je_malloc_usable_size(ByteBuffer ptr)
      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 that la 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 of a, where a is a power of two. This macro does not validate that a 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 identifier tc, which must have been acquired via the tcache.create mallctl. This macro does not validate that tc 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 index a (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 that a specifies an arena index in the valid range.
      Parameters:
      a - the arena index