12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
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.io.IOException;
25 import java.math.BigDecimal;
26 import java.util.ArrayList;
27 import java.util.HashMap;
28 import java.util.List;
29 import java.util.Map;
30
31 import jdk.test.lib.apps.LingeredApp;
32 import jdk.testlibrary.Utils;
33 import jdk.test.lib.Platform;
34
35 /**
36 * @test
37 * @bug 8042397
38 * @summary Unit test for jmap utility test heap configuration reader
39 *
40 * @requires vm.hasSAandCanAttach
41 * @library /test/lib
42 * @library /lib/testlibrary
43 * @modules java.management
44 * jdk.hotspot.agent/sun.jvm.hotspot
45 *
46 * @build JMapHeapConfigTest TmtoolTestScenario
47 * @run main JMapHeapConfigTest
48 */
49 public class JMapHeapConfigTest {
50
51 static final String expectedJMapValues[] = {
52 "MinHeapFreeRatio",
53 "MaxHeapFreeRatio",
54 "MaxHeapSize",
55 "NewSize",
56 "MaxNewSize",
57 "OldSize",
58 "NewRatio",
59 "SurvivorRatio",
60 "MetaspaceSize",
61 "CompressedClassSpaceSize",
62 "G1HeapRegionSize"};
|
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
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.io.IOException;
25 import java.math.BigDecimal;
26 import java.util.ArrayList;
27 import java.util.HashMap;
28 import java.util.List;
29 import java.util.Map;
30
31 import jdk.test.lib.apps.LingeredApp;
32 import jdk.test.lib.Utils;
33 import jdk.test.lib.Platform;
34
35 /**
36 * @test
37 * @bug 8042397
38 * @summary Unit test for jmap utility test heap configuration reader
39 *
40 * @requires vm.hasSAandCanAttach
41 * @library /test/lib
42 * @modules java.management
43 * jdk.hotspot.agent/sun.jvm.hotspot
44 *
45 * @build JMapHeapConfigTest TmtoolTestScenario
46 * @run main JMapHeapConfigTest
47 */
48 public class JMapHeapConfigTest {
49
50 static final String expectedJMapValues[] = {
51 "MinHeapFreeRatio",
52 "MaxHeapFreeRatio",
53 "MaxHeapSize",
54 "NewSize",
55 "MaxNewSize",
56 "OldSize",
57 "NewRatio",
58 "SurvivorRatio",
59 "MetaspaceSize",
60 "CompressedClassSpaceSize",
61 "G1HeapRegionSize"};
|