netty-incubator-buffer-api/src/test/java/io/netty/buffer/api
Chris Vest 987a398700 Fix native memory leak bug
Motivation:
The untethered memory allocated by ensureWritable in a direct MemorySegment based non-pooled Buffer would be allocated without having a Cleaner attached to its ResourceScope.
This could cause that memory to leak if the Buffer instance was cast aside.

Modification:
ManagedBufferAllocator now makes sure to attach a cleaner to the buffer and its memory segment, when allocating untethered memory.

Result:
The BufferTest$CleanerTests now pass.
2021-04-07 17:17:35 +02:00
..
adaptor Make it possible to run all tests in Intellij as well 2021-03-24 11:21:00 +01:00
benchmarks Update code to support bleeding edge MemorySegment APIs after the latest refactoring 2021-04-07 14:28:05 +02:00
examples The HttpUpload example *almost* works 2021-03-06 11:21:17 +01:00
BufferRefTest.java Rename Buf to Buffer and Allocator to BufferAllocator 2021-02-12 18:22:07 +01:00
BufferTest.java Fix native memory leak bug 2021-04-07 17:17:35 +02:00
EchoIT.java Update docs and examples 2021-03-01 11:21:25 +01:00
Fixture.java Rename Buf to Buffer and Allocator to BufferAllocator 2021-02-12 18:22:07 +01:00
Memoize.java Try to speed up BufferTest with more parameter memoization and parallel execution 2021-03-09 12:03:33 +01:00
ScopeTest.java Add BufHolder and BufRef helper classes 2020-12-14 14:22:37 +01:00