RFR: 8327246: Add a jcmd diagnostic command to list the jar files loaded by a process [v15]

Larry Cable duke at openjdk.org
Wed Feb 11 09:38:15 UTC 2026


> modified the pre-existing VM.classes jcmd to add a 'location' option, that when specified, will (natively) attempt to obtain the value (if non-null) of the location URL of the CodeSource of each classes ProtectionDomain.
> 
> effectively:
> 
> someObject.getClass().getProtectionDomain().getCodeSource().getLocation().toExternalForm()
> 
> (where interim oops are null-checked)

Larry Cable has updated the pull request incrementally with two additional commits since the last revision:

 - JDK-8327246: remove use of R"(...)" raw string const
 - JDK-8327246: fixed jcmd -help text and documentation to correctly document class flag annotationso as independent of -verbose option

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/29048/files
  - new: https://git.openjdk.org/jdk/pull/29048/files/4349fded..28a06a05

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=29048&range=14
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=29048&range=13-14

  Stats: 40 lines in 3 files changed: 10 ins; 18 del; 12 mod
  Patch: https://git.openjdk.org/jdk/pull/29048.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/29048/head:pull/29048

PR: https://git.openjdk.org/jdk/pull/29048


More information about the serviceability-dev mailing list