epotyom commented on code in PR #15585:
URL: https://github.com/apache/lucene/pull/15585#discussion_r2704668163


##########
lucene/core/src/java/org/apache/lucene/store/MemorySegmentIndexInput.java:
##########
@@ -40,6 +40,22 @@
  * chunkSizePower</code>).
  */
 abstract class MemorySegmentIndexInput extends IndexInput implements 
MemorySegmentAccessInput {
+
+  /** Shared counter for prefetch hit tracking. */
+  static final class SharedPrefetchCounter {
+    private int count;

Review Comment:
   Should we make count `volatile` to ensure visibility across threads?



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to