RFR: 8307478: Implementation of Prepare to Restrict The Dynamic Loading of Agents
Alan Bateman
alanb at openjdk.org
Thu May 11 13:04:16 UTC 2023
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.
-------------
Commit messages:
- Rename/cleanup
- Merge
- Initial commit
Changes: https://git.openjdk.org/jdk/pull/13899/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=13899&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8307478
Stats: 820 lines in 16 files changed: 690 ins; 38 del; 92 mod
Patch: https://git.openjdk.org/jdk/pull/13899.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/13899/head:pull/13899
PR: https://git.openjdk.org/jdk/pull/13899
More information about the hotspot-runtime-dev
mailing list