tschatzl@5116: /* tschatzl@5116: * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. tschatzl@5116: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. tschatzl@5116: * tschatzl@5116: * This code is free software; you can redistribute it and/or modify it tschatzl@5116: * under the terms of the GNU General Public License version 2 only, as tschatzl@5116: * published by the Free Software Foundation. tschatzl@5116: * tschatzl@5116: * This code is distributed in the hope that it will be useful, but WITHOUT tschatzl@5116: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or tschatzl@5116: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License tschatzl@5116: * version 2 for more details (a copy is included in the LICENSE file that tschatzl@5116: * accompanied this code). tschatzl@5116: * tschatzl@5116: * You should have received a copy of the GNU General Public License version tschatzl@5116: * 2 along with this work; if not, write to the Free Software Foundation, tschatzl@5116: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. tschatzl@5116: * tschatzl@5116: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA tschatzl@5116: * or visit www.oracle.com if you need additional information or have any tschatzl@5116: * questions. tschatzl@5116: */ tschatzl@5116: tschatzl@5116: /* tschatzl@5116: * @test TestSerialHeapSizeFlags tschatzl@5116: * @key gc tschatzl@5116: * @bug 8006088 tschatzl@5116: * @summary Tests argument processing for initial and maximum heap size for the Serial collector tschatzl@5116: * @library /testlibrary /testlibrary/whitebox tschatzl@5116: * @build TestSerialHeapSizeFlags TestMaxHeapSizeTools tschatzl@5116: * @run main ClassFileInstaller sun.hotspot.WhiteBox tschatzl@5118: * @run main/othervm TestSerialHeapSizeFlags tschatzl@5116: * @author thomas.schatzl@oracle.com tschatzl@5116: */ tschatzl@5116: tschatzl@5116: public class TestSerialHeapSizeFlags { tschatzl@5116: tschatzl@5116: public static void main(String args[]) throws Exception { tschatzl@5116: final String gcName = "-XX:+UseSerialGC"; tschatzl@5116: tschatzl@5116: TestMaxHeapSizeTools.checkMinInitialMaxHeapFlags(gcName); tschatzl@5116: tschatzl@5116: TestMaxHeapSizeTools.checkGenMaxHeapErgo(gcName); tschatzl@5116: } tschatzl@5116: } tschatzl@5116: