netty5/transport/src
Norman Maurer 94e907fa39 Only call ReferenceCountUtil.touch(...) if ResourceLeakDetection was enabled when Channel was created.
Motivation:

We should only call ReferenceCountUtil.touch(...) if needed as otherwise we pay the overhead of instanceof and cast
everytime.

Modifications:

Add boolean flag which indicates if touch(...) should be called.

Result:

Less overhead when leak detection is not enabled.
2015-10-29 19:23:27 +01:00
..
main/java/io/netty Only call ReferenceCountUtil.touch(...) if ResourceLeakDetection was enabled when Channel was created. 2015-10-29 19:23:27 +01:00
test/java/io/netty [#4373] Fix assert error when trying to release Channel to closed FixedChannelPool 2015-10-24 11:56:46 +02:00