RFR: 8304438: jcmd JVMTI.agent_load should obey EnableDynamicAgentLoading [v2]
Alan Bateman
alanb at openjdk.org
Wed May 31 11:09:55 UTC 2023
On Wed, 31 May 2023 10:34:56 GMT, Serguei Spitsyn <sspitsyn at openjdk.org> wrote:
> I was also thinking if this check has to be done in one place.
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.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/14244#issuecomment-1569985853
More information about the hotspot-runtime-dev
mailing list