public class MMapUtil extends Object
public static final boolean unmap(MappedByteBuffer theBuffer)
MappedByteBuffer. This method enables the workaround for unmapping the buffers from
address space after closing IndexInput, that is mentioned in the bug report. This hack may fail on
non-Sun JVMs. It forcefully unmaps the buffer on close by using an undocumented internal cleanup functionality.theBuffer - buffertrue if unmap was successful, false if unmap is not supported by the JVM or if
there was an exception while trying to unmap.Copyright © 2019–2020 Alibaba Group Holding Limited. All rights reserved.