-
Enhancement
-
Resolution: Fixed
-
P4
-
25
-
b18
The -XX:OnError= option uses a semicolon as a separator. Items separated by a semicolor are run in separate shells or Windows Command sessions.
The -XX:OnError= command-line option is accumulative, so each specification adds to the list of commands to run on a fatal error.
Items added by additional OnError options are not run in a separate shell, they are run as a multi-line script passed to the shell. This works, but the grouping is odd. Commands specified in distinct OnError options run sequentially in the same shell, but items separate by a ; are in distinct shells.
(Note that when multiple OnError options are specified, the shell DOES continue with all lines if an item fails. If an OnError item was bizarrely specified as "exit", then it will skip later OnError items.)
We should be consistent, and run all OnError items in a new shell.
The -XX:OnError= command-line option is accumulative, so each specification adds to the list of commands to run on a fatal error.
Items added by additional OnError options are not run in a separate shell, they are run as a multi-line script passed to the shell. This works, but the grouping is odd. Commands specified in distinct OnError options run sequentially in the same shell, but items separate by a ; are in distinct shells.
(Note that when multiple OnError options are specified, the shell DOES continue with all lines if an item fails. If an OnError item was bizarrely specified as "exit", then it will skip later OnError items.)
We should be consistent, and run all OnError items in a new shell.
- links to
-
Commit(master) openjdk/jdk/cd9fa3f7
-
Review(master) openjdk/jdk/24354