-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should reseting a ByteBlockPool zero out the buffers? #12734
Comments
I spent some more time with the code and I can attempt answering the questions in the description.
So, is there anything to be done? We can remove the option of zeroing byte buffers and move the responsibility for zeroing int buffers to the |
Both the follow-up PRs are merged. I don't think it's worth pursuing this further. Closing. |
Description
ByteBlockPool.reset
can fill the buffers we're recycling with zeros.ByteBlockPool
to theAllocator
'srecycleByteBlocks
method? TheByteBlockPool
loses its reference to the buffers it's just zeroed, so it seems outside its concern to zero the buffers. TheAllocator
could zero the buffers in its recycle method if it needs to.The text was updated successfully, but these errors were encountered: