test/gc/arguments/TestSerialHeapSizeFlags.java

Mon, 28 Jul 2014 15:06:38 -0700

author
fzhinkin
date
Mon, 28 Jul 2014 15:06:38 -0700
changeset 6997
dbb05f6d93c4
parent 5118
0a2986f36965
child 6876
710a3c8b516e
permissions
-rw-r--r--

8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
Summary: call rtm_deopt() only if there were no compilation bailouts before.
Reviewed-by: kvn

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

mercurial