test/compiler/6837011/Test6837011.java

Tue, 31 Aug 2010 17:23:45 -0700

author
trims
date
Tue, 31 Aug 2010 17:23:45 -0700
changeset 2093
0803c0f69b51
parent 1907
c18cbe5936b8
child 6876
710a3c8b516e
permissions
-rw-r--r--

Added tag hs19-b06 for changeset 6c43216df135

twisti@1191 1 /*
trims@1907 2 * Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
twisti@1191 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
twisti@1191 4 *
twisti@1191 5 * This code is free software; you can redistribute it and/or modify it
twisti@1191 6 * under the terms of the GNU General Public License version 2 only, as
twisti@1191 7 * published by the Free Software Foundation.
twisti@1191 8 *
twisti@1191 9 * This code is distributed in the hope that it will be useful, but WITHOUT
twisti@1191 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
twisti@1191 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
twisti@1191 12 * version 2 for more details (a copy is included in the LICENSE file that
twisti@1191 13 * accompanied this code).
twisti@1191 14 *
twisti@1191 15 * You should have received a copy of the GNU General Public License version
twisti@1191 16 * 2 along with this work; if not, write to the Free Software Foundation,
twisti@1191 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
twisti@1191 18 *
trims@1907 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
trims@1907 20 * or visit www.oracle.com if you need additional information or have any
trims@1907 21 * questions.
twisti@1191 22 */
twisti@1191 23
twisti@1191 24 /**
twisti@1191 25 * @test
twisti@1191 26 * @bug 6837011
twisti@1191 27 * @summary SIGSEGV in PhaseIdealLoop in 32bit jvm
twisti@1191 28 *
twisti@1191 29 * @run main/othervm -Xcomp -XX:CompileOnly=Test6837011.main Test6837011
twisti@1191 30 */
twisti@1191 31
twisti@1191 32 public class Test6837011 {
twisti@1191 33 static boolean var_3 = true;
twisti@1191 34
twisti@1191 35 public static void main(String[] args) {
twisti@1191 36 double var_5;
twisti@1191 37 char var_7 = 1;
twisti@1191 38 double var_11 = 0;
twisti@1191 39
twisti@1191 40 do {
twisti@1191 41 var_11++;
twisti@1191 42 var_5 = (var_7 /= ( var_3 ? ~1L : 3 ) );
twisti@1191 43 } while (var_11 < 1);
twisti@1191 44 }
twisti@1191 45 }

mercurial