gemmellr commented on code in PR #4533:
URL: https://github.com/apache/activemq-artemis/pull/4533#discussion_r1251107981
##########
artemis-journal/src/main/java/org/apache/activemq/artemis/core/io/util/ThreadLocalByteBufferPool.java:
##########
@@ -44,6 +44,7 @@ public ByteBuffer borrow(final int size, boolean zeroed) {
} else {
bytesPool.set(null);
if (zeroed) {
+ byteBuffer.clear();
Review Comment:
An alternative could be moving this before the if, and replacing the call
present after the if already..but its probably safer just to leave both for all
it actually does (sets a few ints).
--
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]