Package org.caffinitas.ohc.alloc
Class JNANativeAllocator
- java.lang.Object
-
- org.caffinitas.ohc.alloc.JNANativeAllocator
-
- All Implemented Interfaces:
IAllocator
public final class JNANativeAllocator extends Object implements IAllocator
-
-
Constructor Summary
Constructors Constructor Description JNANativeAllocator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
allocate(long size)
void
free(long peer)
long
getTotalAllocated()
-
-
-
Method Detail
-
allocate
public long allocate(long size)
- Specified by:
allocate
in interfaceIAllocator
-
free
public void free(long peer)
- Specified by:
free
in interfaceIAllocator
-
getTotalAllocated
public long getTotalAllocated()
- Specified by:
getTotalAllocated
in interfaceIAllocator
-
-