Thu, 19 Sep 2013 09:36:51 -0700
Added tag jdk8-b108 for changeset 85072013aad4
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 TestSerialHeapSizeFlags |
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 Serial collector |
tschatzl@5116 | 29 | * @library /testlibrary /testlibrary/whitebox |
tschatzl@5116 | 30 | * @build TestSerialHeapSizeFlags TestMaxHeapSizeTools |
tschatzl@5116 | 31 | * @run main ClassFileInstaller sun.hotspot.WhiteBox |
tschatzl@5118 | 32 | * @run main/othervm TestSerialHeapSizeFlags |
tschatzl@5116 | 33 | * @author thomas.schatzl@oracle.com |
tschatzl@5116 | 34 | */ |
tschatzl@5116 | 35 | |
tschatzl@5116 | 36 | public class TestSerialHeapSizeFlags { |
tschatzl@5116 | 37 | |
tschatzl@5116 | 38 | public static void main(String args[]) throws Exception { |
tschatzl@5116 | 39 | final String gcName = "-XX:+UseSerialGC"; |
tschatzl@5116 | 40 | |
tschatzl@5116 | 41 | TestMaxHeapSizeTools.checkMinInitialMaxHeapFlags(gcName); |
tschatzl@5116 | 42 | |
tschatzl@5116 | 43 | TestMaxHeapSizeTools.checkGenMaxHeapErgo(gcName); |
tschatzl@5116 | 44 | } |
tschatzl@5116 | 45 | } |
tschatzl@5116 | 46 |