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

Larry Cable duke at openjdk.org
Tue Jan 27 20:39:14 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 one additional commit since the last revision:

  JDK-8327246: changes as per @kwalls last comments, improved help and optimized -location option checking

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/29048/files
  - new: https://git.openjdk.org/jdk/pull/29048/files/341643a2..f2198458

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

  Stats: 17 lines in 2 files changed: 2 ins; 0 del; 15 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 hotspot-dev mailing list