public final class MmapLimiter extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CPU_DATA_MODEL |
static boolean |
USE_MMAP
We only use MMAP on 64 bit systems since it's really easy to run out of
virtual address space on a 32 bit system when all the data is getting mapped
into memory.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
acquire()
If another mmap slot is available, acquire it and return true.
|
static MmapLimiter |
defaultLimiter()
Up to 1000 mmaps for 64-bit JVM; none for 32bit.
|
static MmapLimiter |
newLimiter(int maxAllowedMmap) |
void |
release()
Release a slot acquired by a previous call to Acquire() that returned true.
|
public static final int CPU_DATA_MODEL
public static final boolean USE_MMAP
public static MmapLimiter defaultLimiter()
public static MmapLimiter newLimiter(int maxAllowedMmap)
public boolean acquire()
public void release()
Copyright © 2011–2020. All rights reserved.