netty5/common/src
Norman Maurer d533befa96
PlatformDependent.maxDirectMemory() must respect io.netty.maxDirectMemory (#8452)
Motivation:

In netty we use our own max direct memory limit that can be adjusted by io.netty.maxDirectMemory but we do not take this in acount when maxDirectMemory() is used. That will lead to non optimal configuration of PooledByteBufAllocator in some cases.

This came up on stackoverflow:
https://stackoverflow.com/questions/53097133/why-is-default-num-direct-arena-derived-from-platformdependent-maxdirectmemory

Modifications:

Correctly respect io.netty.maxDirectMemory and so configure PooledByteBufAllocator correctly by default.

Result:

Correct value for max direct memory.
2018-11-02 07:19:43 +01:00
..
main PlatformDependent.maxDirectMemory() must respect io.netty.maxDirectMemory (#8452) 2018-11-02 07:19:43 +01:00
test Log the correct line-number when using SLF4j with netty if possible. (#8258) 2018-09-07 07:34:22 +02:00