RFR: 10: 8177522: -XX:OnOutOfMemoryError does not work if supplied twice on windows
Vladimir Kempik
vladimir.kempik at oracle.com
Wed Apr 26 09:58:41 UTC 2017
Hello
Please review this fix for bug JDK-8177522
<https://bugs.openjdk.java.net/browse/JDK-8177522>
The issue is windows only.
When two OnOutOfMemoryError options are passed to java, they are
combined using '\n' as separator.
But when OnError parses the string, it only knows ';' as separator of
commands.
On nix systems it works fine because the command with '\n' in it are
passed to shell where it executed fine.
With this patch I'm making windows routine to behave similary to nix,
passing command to cmd.exe for execution, I just have to replace all
'\n' with '&'.
Such workaround is needed to not break compatibility with existing systems.
Testing: jprt, included testcase.
Webrev - http://cr.openjdk.java.net/~vkempik/8177522/webrev.00/
Bug - https://bugs.openjdk.java.net/browse/JDK-8177522
Thanks, Vladimir
More information about the hotspot-runtime-dev
mailing list