uschindler commented on code in PR #13555: URL: https://github.com/apache/lucene/pull/13555#discussion_r1673613242
########## lucene/core/src/java21/org/apache/lucene/store/MemorySegmentIndexInputProvider.java: ########## @@ -24,12 +24,15 @@ import java.nio.file.Path; import java.nio.file.StandardOpenOption; import java.util.Optional; +import java.util.concurrent.ConcurrentHashMap; import org.apache.lucene.util.Constants; import org.apache.lucene.util.Unwrappable; @SuppressWarnings("preview") final class MemorySegmentIndexInputProvider implements MMapDirectory.MMapIndexInputProvider { + private static final ConcurrentHashMap<String, GroupedArena> ARENAS = new ConcurrentHashMap<>(); Review Comment: Maybe we can make it `CHM<String,AutoCloseable>`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org