Fri, 08 May 2009 15:16:38 -0700
6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
Reviewed-by: never, kvn
twisti@1191 | 1 | /* |
twisti@1191 | 2 | * Copyright 2009 Sun Microsystems, Inc. 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 | * |
twisti@1191 | 19 | * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
twisti@1191 | 20 | * CA 95054 USA or visit www.sun.com if you need additional information or |
twisti@1191 | 21 | * have any 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 | } |