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.
Remove allocation from ResourceLeakDetector
Motivation: RLD allocates an ArrayDeque in anticipation of recording access points. If the leak detection level is less than ADVANCED though, the dequeue is never used. Since SIMPLE is the default level, there is a minor perf win to not preemptively allocate it. This showed up in garbage profiling when creation a high number of buffers. Modifications: Only allocate the dequeue if it will be used. Result: Less garbage created.
- Loading branch information
1 parent
b1332bf
commit b32cd26
Showing
1 changed file
with
12 additions
and
5 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