RFR: 8307478: Implementation of Prepare to Restrict The Dynamic Loading of Agents
Remi Forax
forax at univ-mlv.fr
Thu May 11 13:28:18 UTC 2023
----- Original Message -----
> From: "Alan Bateman" <alanb at openjdk.org>
> To: hotspot-runtime-dev at openjdk.org, "serviceability-dev" <serviceability-dev at 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
More information about the hotspot-runtime-dev
mailing list