netty5/common/src
Norman Maurer 7b6119a0a4 Allow to free direct buffers on java9 again
Motivation:

Java9 adds a new method to Unsafe which allows to free direct ByteBuffer via the cleaner without the need to use an commandline arguments.

Modifications:

- Add Cleaner interface
- Add CleanerJava9 which will be used when using Java9+ and take care of release direct ByteBuffer
- Let Cleaner0 implement Cleaner

Result:

Be able to free direct ByteBuffer on Java9+ again without any commandline arguments.
2017-04-17 19:40:52 +02:00
..
main Allow to free direct buffers on java9 again 2017-04-17 19:40:52 +02:00
test Ensure test introduced in 5c1c14286d also works on Java9 2017-03-29 22:43:00 +02:00