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

David Holmes dholmes at openjdk.org
Fri Jan 16 11:48:43 UTC 2026


On Thu, 15 Jan 2026 23:55:53 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)
>
> Larry Cable has updated the pull request incrementally with one additional commit since the last revision:
> 
>   JDK-8327246: fixed test issue as identified by @dholmes

Alan - jcmds are considered diagnostics and don't require CSR requests. But yes this needs documenting.

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

PR Comment: https://git.openjdk.org/jdk/pull/29048#issuecomment-3759672504


More information about the hotspot-dev mailing list