netty5/buffer/src
Norman Maurer a47685b243 Use bitwise operation when sampling for resource leak detection.
Motivation:

Modulo operations are slow, we can use bitwise operation to detect if resource leak detection must be done while sampling.

Modifications:

- Ensure the interval is a power of two
- Use bitwise operation for sampling
- Add benchmark.

Result:

Faster sampling.
2015-10-29 19:18:44 +01:00
..
main/java/io/netty/buffer Use bitwise operation when sampling for resource leak detection. 2015-10-29 19:18:44 +01:00
test/java/io/netty/buffer [#4198] Fix race-condition when allocate from multiple-thread. 2015-10-27 07:39:42 +01:00