Chris Vest
94e3a00fd4
Update with support for shared segments
Motivation: We wish to make as little use of Unsafe as possible, yet have a flexible buffer API. With the proposed support for shared segments, we're able to clean up our buffer API and simplify the implementation. Modification: With shared segments, we are able to implement TransferSend using supported APIs. This allows us to remove RendezvousSend, and also our hacks in Statics. TransferSend now works by first creating a shared segment and using that for the handover. On the receiving end, if the segment was originally thread-confined, it will once again become confined, but this time to the receiver thread. Shared segments are just passed directly to their new owners. Pooled allocators always create shared memory segments for their buffers, so they can be shared easily via the pool. Result: We now have buffer ownership transfer with nice, convenient, APIs, and we have buffer pooling, all using supported APIs.
Netty Incubator Buffer API
This repository is incubating a new buffer API proposed for Netty 5.
Description
Languages
Java
99.6%
Dockerfile
0.2%
Makefile
0.2%