RFR: 8304438: jcmd JVMTI.agent_load should obey EnableDynamicAgentLoading [v2]
Serguei Spitsyn
sspitsyn at openjdk.org
Wed May 31 23:45:05 UTC 2023
On Wed, 31 May 2023 11:07:02 GMT, Alan Bateman <alanb at openjdk.org> wrote:
> Yes, maybe JvmtiAgentList::load_agent, JvmtiAgent::load, or invoke_Agent_OnAttach. As part of the change to emit a warning when agent code is loaded into a running VM, invoke_Agent_OnAttach needs to check if EnableDynamicAgentLoading has been set on the command line, so looking at this VM option in one place would be nice.
I've moved the EnableDynamicAgentLoading check to the invoke_Agent_OnAttach.
It is the same place where a warning is going to be generated as part of the 8307478 (JEP enhancement).
-------------
PR Comment: https://git.openjdk.org/jdk/pull/14244#issuecomment-1571100330
More information about the serviceability-dev
mailing list