394e7f0287
Motivation: https://github.com/netty/netty/pull/9548 introduced a change that creates a new AttributeKey for each SimpleChannelPool instance created. AttributeKeys are cached statically in a ConstantPool by the AttributeKey.newInstance method. Because of this, creating a SimpleChannelPool instance will allocate memory that will never be released, even after the SimpleChannelPool is closed. Modifications: This change goes back to a single AttributeKey per SimpleChannelPool, just using a more specific name to reduce the chance of conflicts with user code. Result: No memory is leaked after a SimpleChannelPool instance is created and destroyed. |
||
---|---|---|
.. | ||
main | ||
test/java/io/netty |