8163185: jhsdb jstack cannot work with normal mode
authorysuenaga
Tue, 09 Aug 2016 21:57:29 +0900
changeset 40380 5e5a194ad1b4
parent 40379 59f83b354e9f
child 40381 1f2c47214988
8163185: jhsdb jstack cannot work with normal mode Reviewed-by: dsamersoff, dholmes
hotspot/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/SALauncher.java
--- a/hotspot/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/SALauncher.java	Fri Aug 12 14:12:55 2016 -0700
+++ b/hotspot/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/SALauncher.java	Tue Aug 09 21:57:29 2016 +0900
@@ -255,7 +255,8 @@
         }
 
         buildAttachArgs(newArgs, pid, exe, core, false);
-        JStack.main(newArgs.toArray(new String[newArgs.size()]));
+        JStack jstack = new JStack(false, false);
+        jstack.runWithArgs(newArgs.toArray(new String[newArgs.size()]));
     }
 
     private static void runJMAP(String[] oldArgs) {