< prev index next >

test/jdk/sun/tools/jmap/BasicJMapTest.java

Print this page

        

@@ -77,21 +77,21 @@
         OutputAnalyzer output = jmap("-histo:all");
         output.shouldHaveExitValue(0);
     }
 
     private static void testHistoParallelZero() throws Exception {
-        OutputAnalyzer output = jmap("-histo:parallelThreadNum=0");
+        OutputAnalyzer output = jmap("-histo:parallel=0");
         output.shouldHaveExitValue(0);
     }
 
     private static void testHistoParallel() throws Exception {
-        OutputAnalyzer output = jmap("-histo:parallelThreadNum=2");
+        OutputAnalyzer output = jmap("-histo:parallel=2");
         output.shouldHaveExitValue(0);
     }
 
     private static void testHistoNonParallel() throws Exception {
-        OutputAnalyzer output = jmap("-histo:parallelThreadNum=1");
+        OutputAnalyzer output = jmap("-histo:parallel=1");
         output.shouldHaveExitValue(0);
     }
 
     private static void testHistoToFile() throws Exception {
         histoToFile(false);

@@ -147,11 +147,11 @@
     private static void histoToFile(boolean live,
                                     boolean explicitAll,
                                     int parallelThreadNum) throws Exception {
         String liveArg = "";
         String fileArg = "";
-        String parArg = "parallelThreadNum=" + parallelThreadNum;
+        String parArg = "parallel=" + parallelThreadNum;
         String allArgs = "-histo:";
 
         if (live == true && explicitAll == true) {
             fail("Illegal argument setting for jmap -histo");
         }
< prev index next >