test/compiler/print/PrintInlining.java

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

author
fzhinkin
date
Mon, 28 Jul 2014 15:06:38 -0700
changeset 6997
dbb05f6d93c4
parent 5985
52575a17a36c
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

kvn@5763 1 /*
kvn@5763 2 * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
kvn@5763 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
kvn@5763 4 *
kvn@5763 5 * This code is free software; you can redistribute it and/or modify it
kvn@5763 6 * under the terms of the GNU General Public License version 2 only, as
kvn@5763 7 * published by the Free Software Foundation.
kvn@5763 8 *
kvn@5763 9 * This code is distributed in the hope that it will be useful, but WITHOUT
kvn@5763 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
kvn@5763 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
kvn@5763 12 * version 2 for more details (a copy is included in the LICENSE file that
kvn@5763 13 * accompanied this code).
kvn@5763 14 *
kvn@5763 15 * You should have received a copy of the GNU General Public License version
kvn@5763 16 * 2 along with this work; if not, write to the Free Software Foundation,
kvn@5763 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
kvn@5763 18 *
kvn@5763 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
kvn@5763 20 * or visit www.oracle.com if you need additional information or have any
kvn@5763 21 * questions.
kvn@5763 22 */
kvn@5763 23
kvn@5763 24 /*
kvn@5763 25 * @test
kvn@5763 26 * @bug 8022585
kvn@5763 27 * @summary VM crashes when ran with -XX:+PrintInlining
iignatyev@5985 28 * @run main/othervm -Xcomp -XX:+UnlockDiagnosticVMOptions -XX:+PrintInlining PrintInlining
kvn@5763 29 *
kvn@5763 30 */
kvn@5763 31
kvn@5763 32 public class PrintInlining {
kvn@5763 33 public static void main(String[] args) {
kvn@5763 34 System.out.println("Passed");
kvn@5763 35 }
kvn@5763 36 }

mercurial