You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "stefanvodita (via GitHub)" <gi...@apache.org> on 2023/08/14 18:17:10 UTC
[GitHub] [lucene] stefanvodita commented on a diff in pull request #12506: Clean up ByteBlockPool
stefanvodita commented on code in PR #12506:
URL: https://github.com/apache/lucene/pull/12506#discussion_r1293815927
##########
lucene/core/src/java/org/apache/lucene/util/ByteBlockPool.java:
##########
@@ -129,21 +143,22 @@ public ByteBlockPool(Allocator allocator) {
}
/**
- * Resets the pool to its initial state reusing the first buffer and fills all buffers with <code>
- * 0</code> bytes before they reused or passed to {@link Allocator#recycleByteBlocks(byte[][],
- * int, int)}. Calling {@link ByteBlockPool#nextBuffer()} is not needed after reset.
+ * Resets the pool to its initial state, reusing the first buffer and filling all buffers with
+ * {@code 0} bytes before they are reused or passed to {@link
Review Comment:
I wonder if we really need to zero out the buffers that will be recycled. Maybe it makes more sense to have the recycling method do it if necessary?
--
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-unsubscribe@lucene.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org