On Wed, 10 May 2023 11:12:49 GMT, Alan Bateman <[email protected]> wrote:
> 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. This part > includes an update to the JVM TI spec and API docs to require the warning. > > 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. > > Testing: tier1-6 This pull request has now been integrated. Changeset: 5bd2af26 Author: Alan Bateman <[email protected]> URL: https://git.openjdk.org/jdk/commit/5bd2af26e66a863edc670229444b3282ba639563 Stats: 1199 lines in 21 files changed: 941 ins; 99 del; 159 mod 8307478: Implementation of Prepare to Restrict The Dynamic Loading of Agents Reviewed-by: sspitsyn, cjplummer ------------- PR: https://git.openjdk.org/jdk/pull/13899
