test/gc/arguments/TestParallelHeapSizeFlags.java

Mon, 13 May 2013 09:45:33 +0200

author
tschatzl
date
Mon, 13 May 2013 09:45:33 +0200
changeset 5116
7a95933197d0
child 5118
0a2986f36965
permissions
-rw-r--r--

8014058: Regression tests for 8006088
Summary: The patch for 8006088 misses regression tests after a merge error, this CR provides them.
Reviewed-by: jwilhelm, tamao, jmasa

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@5116 33 * @run main/othervm TestParallel
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