forked from netty/netty
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make "pinned memory" from PooledByteBufAllocator reflect buffers in u…
…se (netty#11990) Motivation: The pinned memory accounting was being done from a bad place. Namely, it was being done at the same time as the PoolChunk free memory accounting was being done. That means the thread local caching was messing up the accuracy of the numbers. Modification: Move pinned memory accounting to the PooledByteBuf init and deallocation methods, so it's tied to the buffer life cycle. Result: The pinned memory accounting is updated as part of the pooled buffer life cycle, and is no longer being tricked by the activities of the thread-local buffer cache. Fixes netty#11984
- Loading branch information
Showing
3 changed files
with
116 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters