RFR [8039152] Need a way to suppress message when picking up JAVA_TOOL_OPTIONS

Ivan Gerasimov ivan.gerasimov at oracle.com
Thu Apr 3 14:21:05 UTC 2014

Thanks Mikael for the comment!

> I agree with Staffan.
> If they don't want the output from using JAVA_TOOL_OPTIONS and _JAVA_OPTIONS
> then they can pass the options as command line options.
> If they don't want that they can create a text file with all their flags and
> use -XX:Flags=filename to set their VM flags.

Passing the command line options may become complicated when you need to 
pass the same common options to child processes across the system.
Using the JAVA_TOOL_OPTIONS variable was a workaround, which worked, but 
had its own drawback -- the message printed to the stderr, which has to 
be processed by each caller.

The -XX:Flags option still has to be passed to every newly created 
process somehow, so I don't see how it can help.

Sincerely yours,

More information about the hotspot-dev mailing list