Since it's out of jvm heap & gc, when does it released? Or, it remain until process termination?
I already checked:
- how to garbage collect a direct buffer java
- Deallocating Direct Buffer Native Memory in Java for JOGL
- ByteBuffer.allocate() vs. ByteBuffer.allocateDirect()
But all the answers are blur, none answered it explicitly, does there have a clear answer? At least for Java 8 on 64-bit Linux.