Java off-heap alloction using unsafe.
jmap -histo <pid>
jcmd <pid> VM.native_memory | grep Internal
Unsafe
)public long allocateMemory(long bytes)
public void setMemory(long address, long bytes, byte value)
public void putShort(long address, short x)
allocateMemory
, the results are undefinedpublic short getShort(long address)
allocateMemory
, the results are undefinedpublic void freeMemory(long address)
reallocateMemory