netty5/buffer
Norman Maurer 54339c08ac Only try to calculate direct memory offset when sun.misc.Unsafe is present
Motivation:

We should only try to calculate the direct memory offset when sun.misc.Unsafe is present as otherwise it will fail with an NPE as PlatformDependent.directBufferAddress(...) will throw it.
This problem was introduced by 66b9be3a46.

Modifications:

Use offset of 0 if no sun.misc.Unsafe is present.

Result:

PooledByteBufAllocator also works again when no sun.misc.Unsafe is present.
2017-02-14 07:49:24 +01:00
..
src Only try to calculate direct memory offset when sun.misc.Unsafe is present 2017-02-14 07:49:24 +01:00
pom.xml Only use Mockito for mocking. 2017-02-07 08:47:22 +01:00