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 }
|
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
31 * -XX:CompileCommand=compileonly,compiler.c2.Test7169782::<clinit>
32 * compiler.c2.Test7169782
33 */
34
35 package compiler.c2;
36
37 public class Test7169782 {
38 static long var_8;
39
40 static {
41 var_8 /= (long)(1E100 + ("".startsWith("a", 0) ? 1 : 2));
42 }
43
44 public static void main(String[] args) {
45 System.out.println("Test passed.");
46 }
47 }
|