Would anyone be opposed to a new option to redirect hs-err files to stderr/out?

Aleksey Shipilev shade at redhat.com
Mon Mar 18 13:50:13 UTC 2019

On 3/18/19 2:43 PM, Thomas Stüfe wrote:
> We have the -XX:ErrorFile option to overwrite the default path and file
> name for the hs-err file. I would like to add the option of specifiying a
> special value which would mean "stdout" or "stderr", respectivly.
> E.g. -XX:ErrorFile=STDERR or -XX:ErrorFile=STDOUT .
> Any objections? If not, I would draft a CSR and implement this.

That would be very welcome.

It would be the bikeshedding exercise to come up with the special name that would not clash with
potential real user-specified path. On Linux, I'd expect -XX:ErrorFile=/dev/stdout to work -- maybe
start from making sure that works reliably?


More information about the hotspot-runtime-dev mailing list