----- Original Message -----
> From: "Alan Bateman" <al...@openjdk.org>
> To: hotspot-runtime-...@openjdk.org, "serviceability-dev" 
> <serviceability-dev@openjdk.org>
> Sent: Thursday, May 11, 2023 3:04:16 PM
> Subject: RFR: 8307478: Implementation of Prepare to Restrict The Dynamic 
> Loading of Agents

> This is the implementation for JEP 451. There are two parts to this:
> 
> 1. A multi-line warning is printed when a JVM TI or Java agent is loaded into 
> a
> running VM. For JVM TI, the message is printed to stderr from 
> JvmtiAgent::load.
> For Java agents, it is printed to System.err (as that may be redirected) in 
> the
> JPLIS (j.l.instrumentation) implementation.
> 
> 2. If running with -Djdk.instrument.traceUsage or
> -Djdk.instrument.traceUsage=true, the calls to the Instrumentation API print a
> trace message and stack trace.

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"

RĂ©mi

Reply via email to