Mercurial > hg > graal-compiler
comparison test/compiler/7169782/Test7169782.java @ 6142:121e5708ae96
7169782: C2: SIGSEGV in LShiftLNode::Ideal(PhaseGVN*, bool)
Summary: keep intermediate node alive till the end of the graph construction using dummy hook node trick
Reviewed-by: kvn, twisti
Contributed-by: vladimir.x.ivanov@oracle.com
author | kvn |
---|---|
date | Tue, 12 Jun 2012 09:47:23 -0700 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
6141:e7715c222897 | 6142:121e5708ae96 |
---|---|
1 /* | |
2 * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. | |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | |
4 * | |
5 * This code is free software; you can redistribute it and/or modify it | |
6 * under the terms of the GNU General Public License version 2 only, as | |
7 * published by the Free Software Foundation. | |
8 * | |
9 * This code is distributed in the hope that it will be useful, but WITHOUT | |
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
12 * version 2 for more details (a copy is included in the LICENSE file that | |
13 * accompanied this code). | |
14 * | |
15 * You should have received a copy of the GNU General Public License version | |
16 * 2 along with this work; if not, write to the Free Software Foundation, | |
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | |
18 * | |
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA | |
20 * or visit www.oracle.com if you need additional information or have any | |
21 * questions. | |
22 * | |
23 */ | |
24 | |
25 /** | |
26 * @test | |
27 * @bug 7169782 | |
28 * @summary C2: SIGSEGV in LShiftLNode::Ideal(PhaseGVN*, bool) | |
29 * | |
30 * @run main/othervm -Xcomp -XX:CompileOnly="Test7169782::<clinit>" Test7169782 | |
31 */ | |
32 | |
33 public class Test7169782 { | |
34 static long var_8; | |
35 | |
36 static { | |
37 var_8 /= (long)(1E100 + ("".startsWith("a", 0) ? 1 : 2)); | |
38 } | |
39 | |
40 public static void main(String[] args) { | |
41 System.out.println("Test passed."); | |
42 } | |
43 } |