Summary
The jcmd JVMTI.agent_load should obey the EnableDynamicAgentLoading VM flag.
Problem
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.
Solution
This should be fixed to disallow loading JVMTI agents when the EnableDynamicAgentLoading flag is false.
Specification
This is pure behavioral change which does not change the specs.
- csr of
-
JDK-8304438 jcmd JVMTI.agent_load should obey EnableDynamicAgentLoading
- Resolved