Wed, 12 Dec 2018 14:46:23 +0100
8059038: Create new launcher for SA tools
Summary: Create separate launchers for clhsdb and hsdb since JDK 8 uses separate launchers for SA tools
Reviewed-by: kevinw, andrew
agent/src/share/classes/sun/jvm/hotspot/CLHSDB.java | file | annotate | diff | comparison | revisions | |
agent/src/share/classes/sun/jvm/hotspot/HSDB.java | file | annotate | diff | comparison | revisions |
1.1 --- a/agent/src/share/classes/sun/jvm/hotspot/CLHSDB.java Thu Dec 20 20:11:38 2018 +0000 1.2 +++ b/agent/src/share/classes/sun/jvm/hotspot/CLHSDB.java Wed Dec 12 14:46:23 2018 +0100 1.3 @@ -113,7 +113,8 @@ 1.4 private String coreFilename; 1.5 1.6 private void doUsage() { 1.7 - System.out.println("Usage: java CLHSDB [[pid] | [path-to-java-executable [path-to-corefile]] | help ]"); 1.8 + // With JDK-8059038 launchers for this class exist. Print usage for those launchers. 1.9 + System.out.println("Usage: clhsdb [[pid] | [path-to-java-executable [path-to-corefile]] | help | -help ]"); 1.10 System.out.println(" pid: attach to the process whose id is 'pid'"); 1.11 System.out.println(" path-to-java-executable: Debug a core file produced by this program"); 1.12 System.out.println(" path-to-corefile: Debug this corefile. The default is 'core'");
2.1 --- a/agent/src/share/classes/sun/jvm/hotspot/HSDB.java Thu Dec 20 20:11:38 2018 +0000 2.2 +++ b/agent/src/share/classes/sun/jvm/hotspot/HSDB.java Wed Dec 12 14:46:23 2018 +0100 2.3 @@ -82,7 +82,8 @@ 2.4 private String coreFilename; 2.5 2.6 private void doUsage() { 2.7 - System.out.println("Usage: java HSDB [[pid] | [path-to-java-executable [path-to-corefile]] | help ]"); 2.8 + // With JDK-8059038 launchers for this class exist. Print usage for those launchers. 2.9 + System.out.println("Usage: hsdb [[pid] | [path-to-java-executable [path-to-corefile]] | help | -help ]"); 2.10 System.out.println(" pid: attach to the process whose id is 'pid'"); 2.11 System.out.println(" path-to-java-executable: Debug a core file produced by this program"); 2.12 System.out.println(" path-to-corefile: Debug this corefile. The default is 'core'");