17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 import java.util.ArrayList;
25 import java.util.HashMap;
26 import java.util.List;
27 import java.util.Map;
28
29 import jdk.test.lib.apps.LingeredApp;
30 import jdk.test.lib.Utils;
31
32 /**
33 * @test
34 * @bug 8191658
35 * @summary Test clhsdb jhisto command
36 * @requires vm.hasSA
37 * @library /test/lib
38 * @run main/othervm ClhsdbJhisto
39 */
40
41 public class ClhsdbJhisto {
42
43 public static void main(String[] args) throws Exception {
44 System.out.println("Starting ClhsdbJhisto test");
45
46 LingeredAppWithInterface theApp = null;
47 try {
48 ClhsdbLauncher test = new ClhsdbLauncher();
49 List<String> vmArgs = new ArrayList<String>();
50 vmArgs.addAll(Utils.getVmOptions());
51
52 theApp = new LingeredAppWithInterface();
53 LingeredApp.startApp(vmArgs, theApp);
54 System.out.println("Started LingeredApp with pid " + theApp.getPid());
55
56 List<String> cmds = List.of("jhisto");
|
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 import java.util.ArrayList;
25 import java.util.HashMap;
26 import java.util.List;
27 import java.util.Map;
28
29 import jdk.test.lib.apps.LingeredApp;
30 import jdk.test.lib.Utils;
31
32 /**
33 * @test
34 * @bug 8191658
35 * @summary Test clhsdb jhisto command
36 * @requires vm.hasSA
37 * @requires vm.gc != "Z"
38 * @library /test/lib
39 * @run main/othervm ClhsdbJhisto
40 */
41
42 public class ClhsdbJhisto {
43
44 public static void main(String[] args) throws Exception {
45 System.out.println("Starting ClhsdbJhisto test");
46
47 LingeredAppWithInterface theApp = null;
48 try {
49 ClhsdbLauncher test = new ClhsdbLauncher();
50 List<String> vmArgs = new ArrayList<String>();
51 vmArgs.addAll(Utils.getVmOptions());
52
53 theApp = new LingeredAppWithInterface();
54 LingeredApp.startApp(vmArgs, theApp);
55 System.out.println("Started LingeredApp with pid " + theApp.getPid());
56
57 List<String> cmds = List.of("jhisto");
|