From d29848e838ec2c08d0f75f1ab59ad229af31e121 Mon Sep 17 00:00:00 2001 From: Larry Cable Date: Fri, 16 Jan 2026 10:45:32 -0800 Subject: [PATCH] JDK-8327246: updated jcmd.md to document -location flag --- src/jdk.jcmd/share/man/jcmd.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/jdk.jcmd/share/man/jcmd.md b/src/jdk.jcmd/share/man/jcmd.md index af3886a915c..3a8f0ac3828 100644 --- a/src/jdk.jcmd/share/man/jcmd.md +++ b/src/jdk.jcmd/share/man/jcmd.md @@ -804,6 +804,12 @@ The following commands are available: `f` = has final method, `W` = methods rewritten, `C` = marked with `@Contended` annotation, `R` = has been redefined, `S` = is shared class (BOOLEAN, false) + - `-location`: (Optional) Print the location of the class file from which the class is loaded (if available) + If provided by its defining ClassLoader, this option will print a URL specifying the location of the + class file (directory, jar or other URL location) from which this class was loaded. + + Note: JDK (and other classes) loaded by a ClassLoader that does not provide a location URL to the JVM will omit this field. + `VM.classloader_stats` : Print statistics about all ClassLoaders.