Hacker News new | ask | show | jobs
by the8472 3032 days ago
You don't even have to go through Unsafe. ByteBuffer.allocateDirect() gives you a chunk of off-heap memory.