netty5/transport/src
Matthew Miller 394e7f0287 Prevent memory leak when SimpleChannelPools are destroyed (#9760)
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.
2019-11-07 14:48:56 +01:00
..
main Prevent memory leak when SimpleChannelPools are destroyed (#9760) 2019-11-07 14:48:56 +01:00
test/java/io/netty Fix NioEventLoopTest#testChannelsRegistered flakiness (#9650) 2019-10-09 16:57:54 +04:00