Integrated: 8254196: jshell infinite loops when startup script contains System.exit call
Jan Lahoda
jlahoda at openjdk.java.net
Wed Mar 24 10:37:40 UTC 2021
On Tue, 23 Mar 2021 12:57:40 GMT, Jan Lahoda <jlahoda at openjdk.org> wrote:
> If the startup script contains `System.exit(0);`, JShell will end up in an infinite loop of remote agent crashing, restarting, startup script running on the new instance, crashing, etc.
>
> The proposal here is to avoid re-running the script from the beginning after the remote stops during startup. This should be fairly consistent with behavior of options like "/reload". Behavior in other cases should be unmodified.
This pull request has now been integrated.
Changeset: 6c0fbf70
Author: Jan Lahoda <jlahoda at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/6c0fbf70
Stats: 27 lines in 3 files changed: 24 ins; 0 del; 3 mod
8254196: jshell infinite loops when startup script contains System.exit call
Reviewed-by: sundar
-------------
PR: https://git.openjdk.java.net/jdk/pull/3150
More information about the kulla-dev
mailing list