Integrated: 8304438: jcmd JVMTI.agent_load should obey EnableDynamicAgentLoading
Serguei Spitsyn
sspitsyn at openjdk.org
Tue Jun 6 00:03:03 UTC 2023
On Wed, 31 May 2023 10:08:46 GMT, Serguei Spitsyn <sspitsyn at openjdk.org> wrote:
> The VM option EnableDynamicAgentLoading was added in JDK 9, default true, to allow deployment to choose whether to allow agents to be loaded/started in the VM. The VM option does the right thing for tools using the Attach API but jcmd JVMTI.agent_load was missed. This should be fixed to disallow loading JVMTI agents when the EnableDynamicAgentLoading is false.
>
> The CSR is:
> [JDK-8309250](https://bugs.openjdk.org/browse/JDK-8309250): jcmd JVMTI.agent_load should obey EnableDynamicAgentLoading
>
> Testing:
> - run new test `test/jdk/sun/tools/jcmd/TestJcmdNoAgentLoad.java`
> - TBD: submit mach5 tiers 1-5 to make sure no new regressions are introduced
This pull request has now been integrated.
Changeset: 4b153498
Author: Serguei Spitsyn <sspitsyn at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/4b1534989b39139aaa2952564e2b4098181a9eee
Stats: 124 lines in 4 files changed: 117 ins; 4 del; 3 mod
8304438: jcmd JVMTI.agent_load should obey EnableDynamicAgentLoading
Reviewed-by: cjplummer, alanb, amenkov
-------------
PR: https://git.openjdk.org/jdk/pull/14244
More information about the serviceability-dev
mailing list