diff --git a/lucene/core/src/java/org/apache/lucene/store/MMapDirectory.java b/lucene/core/src/java/org/apache/lucene/store/MMapDirectory.java index 58be07ab437..9ca636b4cd7 100644 --- a/lucene/core/src/java/org/apache/lucene/store/MMapDirectory.java +++ b/lucene/core/src/java/org/apache/lucene/store/MMapDirectory.java @@ -76,9 +76,9 @@ import org.apache.lucene.util.SuppressForbidden; *
On exactly Java 19 this class will use the modern {@code MemorySegment} API which - * allows to safely unmap (if you discover any problems with this preview API, you can disable it by - * using system property {@link #ENABLE_MEMORY_SEGMENTS_SYSPROP}). + *
On exactly Java 19 and Java 20 this class will use the modern {@code + * MemorySegment} API which allows to safely unmap (if you discover any problems with this preview + * API, you can disable it by using system property {@link #ENABLE_MEMORY_SEGMENTS_SYSPROP}). * *
NOTE: Accessing this class either directly or indirectly from a thread while it's * interrupted can close the underlying channel immediately if at the same time the thread is @@ -123,7 +123,7 @@ public class MMapDirectory extends FSDirectory { * Default max chunk size: * *
Please note: The chunk size is always rounded down to a power of 2. *