public class MmapMalloc extends Object implements com.hazelcast.internal.memory.MemoryAllocator, com.hazelcast.nio.Disposable
MmapSlabs, one for each
block size.| Constructor and Description |
|---|
MmapMalloc(File baseDir,
boolean deleteEmptySlab) |
| Modifier and Type | Method and Description |
|---|---|
long |
allocate(long size) |
void |
dispose() |
void |
free(long address,
long size) |
long |
reallocate(long address,
long currentSize,
long newSize) |
public MmapMalloc(File baseDir, boolean deleteEmptySlab)
public long allocate(long size)
allocate in interface com.hazelcast.internal.memory.MemoryAllocatorpublic long reallocate(long address,
long currentSize,
long newSize)
reallocate in interface com.hazelcast.internal.memory.MemoryAllocatorpublic void free(long address,
long size)
free in interface com.hazelcast.internal.memory.MemoryAllocatorpublic void dispose()
dispose in interface com.hazelcast.nio.DisposableCopyright © 2020 Hazelcast, Inc.. All Rights Reserved.