Integrated: 8319311: JShell Process Builder should be configurable
Jan Lahoda
jlahoda at openjdk.org
Tue Nov 28 12:35:20 UTC 2023
On Mon, 13 Nov 2023 07:52:35 GMT, Jan Lahoda <jlahoda at openjdk.org> wrote:
> JShell has a two parts: the main process, which compiles the user's snippets, and possibly interacts with the user, and an "agent" that executes the executable code produced from the snippets. Then "agent" is typically (although not necessarily) a separate process. The clients of the JShell API are free to override the agent behavior, selecting either from the list of existing agents, or creating their own.
>
> There is, however, a desire to use agent that is mostly equivalent to the default JDI-based agent, but with some adjustments.
>
> This patch proposes to limit the amount of code needed to create an agent derived from the default agent.
>
> The solution has two parts:
>
> - a new interface, JdiStarter is created, which the API client can use to provide code that starts the external JVM for snippet execution
> - the existing JdiInitiator is enhanced so that the user can override the process creation itself.
>
> Please also review the CSR:
> https://bugs.openjdk.org/browse/JDK-8319923
This pull request has now been integrated.
Changeset: 2fae07f5
Author: Jan Lahoda <jlahoda at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/2fae07f53f84b71df80ff95d858e8bbef281672f
Stats: 262 lines in 4 files changed: 226 ins; 21 del; 15 mod
8319311: JShell Process Builder should be configurable
Reviewed-by: asotona
-------------
PR: https://git.openjdk.org/jdk/pull/16627
More information about the kulla-dev
mailing list