dungba88 commented on code in PR #12738: URL: https://github.com/apache/lucene/pull/12738#discussion_r1382384038
########## lucene/core/src/java/org/apache/lucene/util/ByteBlockPool.java: ########## @@ -38,6 +38,8 @@ public final class ByteBlockPool implements Accountable { /** Abstract class for allocating and freeing byte blocks. */ public abstract static class Allocator { + // TODO: ByteBlockPool assume the blockSize is always {@link BYTE_BLOCK_SIZE}, but this class + // allow arbitrary value of blockSize. We should make them consistent. protected final int blockSize; Review Comment: We don't have, and this Allocator seems to be only used by ByteBlockPool so maybe we don't need it to have custom block size? -- 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