RFR: 8284642: Unexpected behavior of -XX:MaxDirectMemorySize=0

David Holmes dholmes at openjdk.java.net
Fri Apr 22 00:25:25 UTC 2022


On Wed, 13 Apr 2022 12:24:46 GMT, Harold Seigel <hseigel at openjdk.org> wrote:

> Please review this small fix for JDK-8284642.  The fix was tested by running Mach5 tiers 1-2 on Linux, Mac OS, and Windows, and Mach5 tiers 3-5 on Linux x64.  Additionally, the modified test and the test in the bug report were run locally.
> 
> Thanks, Harold

I would delete the last sentence:

> By default, the size is set to 0, meaning that the JVM chooses the size for NIO direct-buffer allocations automatically.

and replace with:

> If not set, the flag is ignored and the JVM chooses the size for NIO direct-buffer allocations automatically.

-------------

PR: https://git.openjdk.java.net/jdk/pull/8222


More information about the nio-dev mailing list