Chris Vest a535fb8cd8 Fix a bug in Buf.ensureWritable for pooled buffers
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.
2020-11-17 15:26:58 +01:00
2020-11-17 15:26:57 +01:00

Netty Incubator Buffer API

This repository is incubating a new buffer API proposed for Netty 5.

Description
No description provided
Readme 1.2 MiB
Languages
Java 99.6%
Dockerfile 0.2%
Makefile 0.2%