This method enables the workaround for unmapping the buffers
from address space after closing {@link 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.
NOTE: Enabling this is completely unsupported
by Java and may lead to JVM crashs if
is closed while another thread is still accessing it (SIGSEGV).
CopyC#
IndexInput
is and the workaround cannot be enabled.
Namespace: Lucene.Net.StoreCopyC#
false
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1
Syntax
C# |
---|
public virtual void SetUseUnmap( bool useUnmapHack ) |
Visual Basic |
---|
Public Overridable Sub SetUseUnmap ( _ useUnmapHack As Boolean _ ) |
Visual C++ |
---|
public: virtual void SetUseUnmap( bool useUnmapHack ) |
Parameters
- useUnmapHack
- Type: System..::..Boolean
[Missing <param name="useUnmapHack"/> documentation for "M:Lucene.Net.Store.MMapDirectory.SetUseUnmap(System.Boolean)"]