test/gc/arguments/TestParallelHeapSizeFlags.java

Thu, 18 Jul 2013 03:38:10 -0700

author
cl
date
Thu, 18 Jul 2013 03:38:10 -0700
changeset 5396
bb416ee2a79b
parent 5118
0a2986f36965
child 6876
710a3c8b516e
permissions
-rw-r--r--

Added tag jdk8-b99 for changeset 81b6cb70717c

tschatzl@5116 1 /*
tschatzl@5116 2 * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
tschatzl@5116 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
tschatzl@5116 4 *
tschatzl@5116 5 * This code is free software; you can redistribute it and/or modify it
tschatzl@5116 6 * under the terms of the GNU General Public License version 2 only, as
tschatzl@5116 7 * published by the Free Software Foundation.
tschatzl@5116 8 *
tschatzl@5116 9 * This code is distributed in the hope that it will be useful, but WITHOUT
tschatzl@5116 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
tschatzl@5116 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
tschatzl@5116 12 * version 2 for more details (a copy is included in the LICENSE file that
tschatzl@5116 13 * accompanied this code).
tschatzl@5116 14 *
tschatzl@5116 15 * You should have received a copy of the GNU General Public License version
tschatzl@5116 16 * 2 along with this work; if not, write to the Free Software Foundation,
tschatzl@5116 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
tschatzl@5116 18 *
tschatzl@5116 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
tschatzl@5116 20 * or visit www.oracle.com if you need additional information or have any
tschatzl@5116 21 * questions.
tschatzl@5116 22 */
tschatzl@5116 23
tschatzl@5116 24 /*
tschatzl@5116 25 * @test TestParallelHeapSizeFlags
tschatzl@5116 26 * @key gc
tschatzl@5116 27 * @bug 8006088
tschatzl@5116 28 * @summary Tests argument processing for initial and maximum heap size for the
tschatzl@5116 29 * parallel collectors.
tschatzl@5116 30 * @library /testlibrary /testlibrary/whitebox
tschatzl@5116 31 * @build TestParallelHeapSizeFlags TestMaxHeapSizeTools
tschatzl@5116 32 * @run main ClassFileInstaller sun.hotspot.WhiteBox
tschatzl@5118 33 * @run main/othervm TestParallelHeapSizeFlags
tschatzl@5116 34 * @author thomas.schatzl@oracle.com
tschatzl@5116 35 */
tschatzl@5116 36
tschatzl@5116 37 public class TestParallelHeapSizeFlags {
tschatzl@5116 38
tschatzl@5116 39 public static void main(String args[]) throws Exception {
tschatzl@5116 40 // just pick one of the parallel generational collectors. Sizing logic is the
tschatzl@5116 41 // same.
tschatzl@5116 42 final String gcName = "-XX:+UseParallelOldGC";
tschatzl@5116 43
tschatzl@5116 44 TestMaxHeapSizeTools.checkMinInitialMaxHeapFlags(gcName);
tschatzl@5116 45
tschatzl@5116 46 TestMaxHeapSizeTools.checkGenMaxHeapErgo(gcName);
tschatzl@5116 47 }
tschatzl@5116 48 }
tschatzl@5116 49

mercurial