8284642: Unexpected behavior of -XX:MaxDirectMemorySize=0

Reviewed-by: stuefe, dholmes
This commit is contained in:
Harold Seigel 2022-04-26 19:01:09 +00:00
parent 03bcf7b6d1
commit 975a060ade
2 changed files with 4 additions and 3 deletions

View file

@ -1491,8 +1491,8 @@ direct\-buffer allocations.
Append the letter \f[CB]k\f[R] or \f[CB]K\f[R] to indicate kilobytes,
\f[CB]m\f[R] or \f[CB]M\f[R] to indicate megabytes, or \f[CB]g\f[R] or
\f[CB]G\f[R] to indicate gigabytes.
By default, the size is set to 0, meaning that the JVM chooses the size
for NIO direct\-buffer allocations automatically.
If not set, the flag is ignored and the JVM chooses the size for NIO
direct\-buffer allocations automatically.
.RS
.PP
The following examples illustrate how to set the NIO size to 1024 KB in