jdk/test/sun/tools/jmap/heapconfig/TmtoolTestScenario.java
author dsamersoff
Wed, 28 Jan 2015 04:56:00 -0800
changeset 28679 42f73a4a323b
child 31067 483cbf74cf08
permissions -rw-r--r--
8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails Summary: rewrite the test to jtreg Reviewed-by: ykantser, jbachorik
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
28679
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
     1
/*
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
     2
 * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
     4
 *
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
     7
 * published by the Free Software Foundation.
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
     8
 *
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    13
 * accompanied this code).
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    14
 *
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    18
 *
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    21
 * questions.
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    22
 */
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    23
import java.io.BufferedReader;
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    24
import java.io.IOException;
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    25
import java.io.InputStreamReader;
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    26
import java.math.BigDecimal;
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    27
import java.util.ArrayList;
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    28
import java.util.Arrays;
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    29
import java.util.HashMap;
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    30
import java.util.List;
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    31
import java.util.Map;
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    32
import java.util.logging.Level;
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    33
import java.util.logging.Logger;
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    34
import jdk.testlibrary.JDKToolLauncher;
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    35
import jdk.testlibrary.Utils;
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    36
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    37
public class TmtoolTestScenario {
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    38
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    39
    private final ArrayList<String> toolOutput = new ArrayList();
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    40
    private LingeredApp theApp = null;
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    41
    private final String toolName;
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    42
    private final String[] toolArgs;
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    43
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    44
    /**
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    45
     *  @param toolName - name of tool to test
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    46
     *  @param toolArgs - tool arguments
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    47
     *  @return the object
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    48
     */
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    49
    public static TmtoolTestScenario create(String toolName, String... toolArgs) {
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    50
        return new TmtoolTestScenario(toolName, toolArgs);
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    51
    }
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    52
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    53
    /**
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    54
     * @return STDOUT of tool
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    55
     */
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    56
    public List<String> getToolOutput() {
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    57
        return toolOutput;
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    58
    }
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    59
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    60
    /**
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    61
     *
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    62
     * @return STDOUT of test app
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    63
     */
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    64
    public List<String> getAppOutput() {
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    65
        return theApp.getAppOutput();
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    66
    }
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    67
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    68
    /**
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    69
     * @return Value of the app output with -XX:+PrintFlagsFinal as a map.
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    70
     */
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    71
    public Map<String, String>  parseFlagsFinal() {
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    72
        List<String> astr = theApp.getAppOutput();
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    73
        Map<String, String> vmMap = new HashMap();
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    74
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    75
        for (String line : astr) {
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    76
            String[] lv = line.trim().split("\\s+");
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    77
            try {
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    78
                vmMap.put(lv[1], lv[3]);
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    79
            } catch (ArrayIndexOutOfBoundsException ex) {
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    80
                // ignore mailformed lines
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    81
            }
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    82
        }
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    83
        return vmMap;
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    84
    }
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    85
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    86
    /**
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    87
     *
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    88
     * @param vmArgs  - vm and java arguments to launch test app
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    89
     * @return exit code of tool
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    90
     */
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    91
    public int launch(List<String> vmArgs) {
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    92
        System.out.println("Starting LingeredApp");
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    93
        try {
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    94
            try {
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    95
                theApp = LingeredApp.startApp(vmArgs);
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    96
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    97
                System.out.println("Starting " + toolName + " against " + theApp.getPid());
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    98
                JDKToolLauncher launcher = JDKToolLauncher.createUsingTestJDK(toolName);
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
    99
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
   100
                for (String cmd : toolArgs) {
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
   101
                    launcher.addToolArg(cmd);
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
   102
                }
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
   103
                launcher.addToolArg(Long.toString(theApp.getPid()));
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
   104
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
   105
                ProcessBuilder processBuilder = new ProcessBuilder(launcher.getCommand());
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
   106
                processBuilder.redirectError(ProcessBuilder.Redirect.INHERIT);
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
   107
                Process toolProcess = processBuilder.start();
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
   108
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
   109
                // By default child process output stream redirected to pipe, so we are reading it in foreground.
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
   110
                BufferedReader reader = new BufferedReader(new InputStreamReader(toolProcess.getInputStream()));
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
   111
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
   112
                String line;
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
   113
                while ((line = reader.readLine()) != null) {
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
   114
                    toolOutput.add(line.trim());
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
   115
                }
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
   116
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
   117
                toolProcess.waitFor();
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
   118
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
   119
                return toolProcess.exitValue();
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
   120
            } finally {
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
   121
                theApp.stopApp();
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
   122
            }
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
   123
        } catch (IOException | InterruptedException ex) {
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
   124
            throw new RuntimeException("Test ERROR " + ex, ex);
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
   125
        }
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
   126
    }
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
   127
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
   128
    public void launch(String... appArgs) throws IOException {
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
   129
        launch(Arrays.asList(appArgs));
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
   130
    }
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
   131
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
   132
    private TmtoolTestScenario(String toolName, String[] toolArgs) {
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
   133
        this.toolName = toolName;
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
   134
        this.toolArgs = toolArgs;
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
   135
    }
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
   136
42f73a4a323b 8042397: tmtools/jmap/heap_config/jmap_heap_config_OldSize fails
dsamersoff
parents:
diff changeset
   137
}