< prev index next >

test/jdk/sun/tools/jhsdb/HeapDumpTest.java

Print this page
rev 51638 : [mq]: 8210112


  21  * questions.
  22  */
  23 
  24 /**
  25  * @test
  26  * @bug 8163346
  27  * @summary Test hashing of extended characters in Serviceability Agent.
  28  * @requires vm.hasSAandCanAttach
  29  * @library /test/lib
  30  * @library /lib/testlibrary
  31  * @compile -encoding utf8 HeapDumpTest.java
  32  * @run main/timeout=240 HeapDumpTest
  33  */
  34 
  35 import static jdk.testlibrary.Asserts.assertTrue;
  36 
  37 import java.io.IOException;
  38 import java.io.File;
  39 import java.util.List;
  40 import java.util.Arrays;
  41 import jdk.testlibrary.JDKToolLauncher;
  42 import jdk.testlibrary.OutputAnalyzer;
  43 import jdk.testlibrary.ProcessTools;
  44 import jdk.test.lib.apps.LingeredApp;
  45 import jdk.test.lib.Platform;
  46 import jdk.test.lib.hprof.parser.HprofReader;

  47 
  48 public class HeapDumpTest {
  49 
  50     private static LingeredAppWithExtendedChars theApp = null;
  51 
  52     /**
  53      *
  54      * @param vmArgs  - tool arguments to launch jhsdb
  55      * @return exit code of tool
  56      */
  57     public static void launch(String expectedMessage, List<String> toolArgs)
  58         throws IOException {
  59 
  60         System.out.println("Starting LingeredApp");
  61         try {
  62             theApp = new LingeredAppWithExtendedChars();
  63             LingeredApp.startApp(Arrays.asList("-Xmx256m"), theApp);
  64 
  65             System.out.println(theApp.\u00CB);
  66             System.out.println("Starting " + toolArgs.get(0) + " against " + theApp.getPid());




  21  * questions.
  22  */
  23 
  24 /**
  25  * @test
  26  * @bug 8163346
  27  * @summary Test hashing of extended characters in Serviceability Agent.
  28  * @requires vm.hasSAandCanAttach
  29  * @library /test/lib
  30  * @library /lib/testlibrary
  31  * @compile -encoding utf8 HeapDumpTest.java
  32  * @run main/timeout=240 HeapDumpTest
  33  */
  34 
  35 import static jdk.testlibrary.Asserts.assertTrue;
  36 
  37 import java.io.IOException;
  38 import java.io.File;
  39 import java.util.List;
  40 import java.util.Arrays;
  41 
  42 import jdk.test.lib.process.OutputAnalyzer;
  43 import jdk.test.lib.process.ProcessTools;
  44 import jdk.test.lib.apps.LingeredApp;
  45 import jdk.test.lib.Platform;
  46 import jdk.test.lib.hprof.parser.HprofReader;
  47 import jdk.testlibrary.JDKToolLauncher;
  48 
  49 public class HeapDumpTest {
  50 
  51     private static LingeredAppWithExtendedChars theApp = null;
  52 
  53     /**
  54      *
  55      * @param vmArgs  - tool arguments to launch jhsdb
  56      * @return exit code of tool
  57      */
  58     public static void launch(String expectedMessage, List<String> toolArgs)
  59         throws IOException {
  60 
  61         System.out.println("Starting LingeredApp");
  62         try {
  63             theApp = new LingeredAppWithExtendedChars();
  64             LingeredApp.startApp(Arrays.asList("-Xmx256m"), theApp);
  65 
  66             System.out.println(theApp.\u00CB);
  67             System.out.println("Starting " + toolArgs.get(0) + " against " + theApp.getPid());


< prev index next >