RFR: 8327246: Add a jcmd diagnostic command to list the jar files loaded by a process
Serguei Spitsyn
sspitsyn at openjdk.org
Mon Jan 5 21:12:14 UTC 2026
On Mon, 5 Jan 2026 20:16:37 GMT, Larry Cable <duke at openjdk.org> wrote:
> 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)
I wonder if verbose parameter should cause to print class files location. Was this option considered, and if so then why has it been rejected?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/29048#issuecomment-3712095241
More information about the hotspot-dev
mailing list