Java 9 build 148 causes trouble in Apache Lucene/Solr/Elasticsearch
Alan.Bateman at oracle.com
Sun Dec 11 11:16:33 UTC 2016
On 10/12/2016 17:11, Chris Hegarty wrote:
> How about: Unsafe::deallocate(ByteBuffer directBuffer)?
The alternative is of course:
ByteBuffer wrap(long address, int capacity)
The wrap method allow be similar to JNI's NewDirectByteBuffer for those
that are managing the underlying memory themselves. This makes it a more
advanced method to avoid too much temptation to free the memory
underlying a buffer created with ByteBuffer.allocateDirect. We can't do
much with unmap but that at least won't be widely used.
More information about the core-libs-dev