On Wed, 31 May 2023 10:34:56 GMT, Serguei Spitsyn <sspit...@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