[jdk8u-dev] RFR: 8288483: JAVA_TOOL_OPTIONS are silently truncated if they exceed 1024 bytes [v2]
Dmitry Samersoff
dsamersoff at openjdk.org
Fri Jun 17 13:08:58 UTC 2022
> The JAVA_TOOL_OPTIONS environment variable is used to pass additional JVM arguments.
>
> The current implementation in jdk8 has an internal limit on the length of the option variable (1024 bytes) and the number of options (64).
>
> A longer variable will be silently truncated and some options will be lost or the VM will exist with an unrecognized option error.
>
> The fix is not a direct backport of the changes in the later JDKs, but I kept the code as close as possible to what we have in the latest jdk.
>
> It's partial backport of relevant changes from JDK-8135195, JDK-8074895, JDK-8061999
Dmitry Samersoff has updated the pull request incrementally with one additional commit since the last revision:
8288483: JAVA_TOOL_OPTIONS are silently truncated if they exceed 1024 bytes
-------------
Changes:
- all: https://git.openjdk.org/jdk8u-dev/pull/74/files
- new: https://git.openjdk.org/jdk8u-dev/pull/74/files/172de4c3..efab8d3e
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk8u-dev&pr=74&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk8u-dev&pr=74&range=00-01
Stats: 2 lines in 1 file changed: 1 ins; 1 del; 0 mod
Patch: https://git.openjdk.org/jdk8u-dev/pull/74.diff
Fetch: git fetch https://git.openjdk.org/jdk8u-dev pull/74/head:pull/74
PR: https://git.openjdk.org/jdk8u-dev/pull/74
More information about the jdk8u-dev
mailing list