netty-incubator-buffer-api/src/test/java/io/netty/buffer/api/examples
Chris Vest dc281c704c Buffers always have a cleaner attached
Motivation:
Although having a cleaner attached adds a bit of overhead when allocating or closing buffers,
it is more important to make our systems, libraries and frameworks misuse resistant and safe by default.

Modification:
Remove the ability to allocate a buffer that does not have a cleaner attached.
Reference counting and the ability to explicitly release memory remains.
This just makes sure that we always have a safety net to fall back on.

Result:
This will make systems less prone to crashes through running out of memory, native or otherwise, even in the face of true memory leaks.
(Leaks through retained strong references cannot be fixed in any way)
2020-12-17 16:13:43 +01:00
..
AsyncExample.java Buffers always have a cleaner attached 2020-12-17 16:13:43 +01:00
ComposingAndSlicingExample.java Add more examples 2020-11-20 22:22:01 +01:00
FileCopyExample.java Add first example on how to use the new buffer API 2020-11-20 16:07:52 +01:00