[jdk8u-dev] RFR: 8288483: JAVA_TOOL_OPTIONS are silently truncated if they exceed 1024 bytes
    Dmitry Samersoff 
    dsamersoff at openjdk.java.net
       
    Wed Jun 15 17:28:55 UTC 2022
    
    
  
On Wed, 15 Jun 2022 14:31:29 GMT, Dmitry Samersoff <dsamersoff at openjdk.org> wrote:
> … bytes
> 
> 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.
Closing to redo from a separate branch
-------------
PR: https://git.openjdk.org/jdk8u-dev/pull/72
    
    
More information about the jdk8u-dev
mailing list