Add some docs for io.netty.leakDetection.acquireAndReleaseOnly.

Motivation:

We should add some docs / comment to explain what io.netty.leakDetection.acquireAndReleaseOnly is all about.

Modifications:

Add some comments

Result:

Fixes https://github.com/netty/netty/issues/11576.
This commit is contained in:
Norman Maurer 2021-08-16 12:19:17 +02:00
parent 8083818b45
commit 22e71e4efd

View File

@ -35,6 +35,7 @@ import java.nio.charset.Charset;
final class AdvancedLeakAwareByteBuf extends SimpleLeakAwareByteBuf { final class AdvancedLeakAwareByteBuf extends SimpleLeakAwareByteBuf {
// If set to true we will only record stacktraces for touch(...), release(...) and retain(...) calls.
private static final String PROP_ACQUIRE_AND_RELEASE_ONLY = "io.netty.leakDetection.acquireAndReleaseOnly"; private static final String PROP_ACQUIRE_AND_RELEASE_ONLY = "io.netty.leakDetection.acquireAndReleaseOnly";
private static final boolean ACQUIRE_AND_RELEASE_ONLY; private static final boolean ACQUIRE_AND_RELEASE_ONLY;