RFR: 8307478: Implementation of Prepare to Restrict The Dynamic Loading of Agents

Alan Bateman Alan.Bateman at oracle.com
Thu May 11 13:46:59 UTC 2023


On 11/05/2023 14:28, Remi Forax wrote:
> :
> I believe the flag should mention that what is traced is just the dynamic instrumentation, static instrumentation is not an issue,
> perhaps "-Djdk.instrument.traceDynamicUsage=true"
>
There is static, load-time, and dynamic instrumentation. The 
Instrumentation API supports load-time and dynamic. If there is static 
instrumentation going on then it happens before the class bytes are 
loaded. Is that what you mean?

Or maybe you mean how the agent is deployed? The opt-in tracing right 
now is independent of how the agent is started so it works for 
-javaagent, Launcher-Agent-Class, and agents that are dynamically loaded 
via the attach mechanism. Maybe you are arguing that it should be 
limited to agents that are dynamically loaded?

-Alan


More information about the hotspot-runtime-dev mailing list