diff --git a/common/src/main/java/io/netty/util/internal/PlatformDependent.java b/common/src/main/java/io/netty/util/internal/PlatformDependent.java index e6b082d859..d7a8a26218 100644 --- a/common/src/main/java/io/netty/util/internal/PlatformDependent.java +++ b/common/src/main/java/io/netty/util/internal/PlatformDependent.java @@ -158,7 +158,7 @@ public final class PlatformDependent { } else { USE_DIRECT_BUFFER_NO_CLEANER = true; if (maxDirectMemory < 0) { - maxDirectMemory = maxDirectMemory0(); + maxDirectMemory = MAX_DIRECT_MEMORY; if (maxDirectMemory <= 0) { DIRECT_MEMORY_COUNTER = null; } else {