Motivation: Resource lifetime was not correctly handled. Modification: We cannot call drop(buf) on a pooled buffer in order to release its memory from within ensureWritable, because that will send() the buffer back to the pool, which implies closing the buffer instance. Instead, ensureWritable has to always work with untethered memory, so new APIs are added to AllocatorControl for releasing untethered memory. The implementation already existed, because it was used by NativeMemoryCleanerDrop. Result: Buf.ensureWritable no longer closes pooled buffers.
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%