Package org.lwjgl.system.jemalloc
Class JEmallocAllocator
- java.lang.Object
-
- org.lwjgl.system.jemalloc.JEmallocAllocator
-
- All Implemented Interfaces:
org.lwjgl.system.MemoryUtil.MemoryAllocator
public class JEmallocAllocator extends java.lang.Object implements org.lwjgl.system.MemoryUtil.MemoryAllocator
AMemoryUtil.MemoryAllocator
implementation using the jemalloc library.
-
-
Constructor Summary
Constructors Constructor Description JEmallocAllocator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
aligned_alloc(long alignment, long size)
void
aligned_free(long ptr)
long
calloc(long num, long size)
void
free(long ptr)
long
getAlignedAlloc()
long
getAlignedFree()
long
getCalloc()
long
getFree()
long
getMalloc()
long
getRealloc()
long
malloc(long size)
long
realloc(long ptr, long size)
-
-
-
Method Detail
-
getMalloc
public long getMalloc()
- Specified by:
getMalloc
in interfaceorg.lwjgl.system.MemoryUtil.MemoryAllocator
-
getCalloc
public long getCalloc()
- Specified by:
getCalloc
in interfaceorg.lwjgl.system.MemoryUtil.MemoryAllocator
-
getRealloc
public long getRealloc()
- Specified by:
getRealloc
in interfaceorg.lwjgl.system.MemoryUtil.MemoryAllocator
-
getFree
public long getFree()
- Specified by:
getFree
in interfaceorg.lwjgl.system.MemoryUtil.MemoryAllocator
-
getAlignedAlloc
public long getAlignedAlloc()
- Specified by:
getAlignedAlloc
in interfaceorg.lwjgl.system.MemoryUtil.MemoryAllocator
-
getAlignedFree
public long getAlignedFree()
- Specified by:
getAlignedFree
in interfaceorg.lwjgl.system.MemoryUtil.MemoryAllocator
-
malloc
public long malloc(long size)
- Specified by:
malloc
in interfaceorg.lwjgl.system.MemoryUtil.MemoryAllocator
-
calloc
public long calloc(long num, long size)
- Specified by:
calloc
in interfaceorg.lwjgl.system.MemoryUtil.MemoryAllocator
-
realloc
public long realloc(long ptr, long size)
- Specified by:
realloc
in interfaceorg.lwjgl.system.MemoryUtil.MemoryAllocator
-
free
public void free(long ptr)
- Specified by:
free
in interfaceorg.lwjgl.system.MemoryUtil.MemoryAllocator
-
aligned_alloc
public long aligned_alloc(long alignment, long size)
- Specified by:
aligned_alloc
in interfaceorg.lwjgl.system.MemoryUtil.MemoryAllocator
-
aligned_free
public void aligned_free(long ptr)
- Specified by:
aligned_free
in interfaceorg.lwjgl.system.MemoryUtil.MemoryAllocator
-
-