1969N/A/*
1969N/A * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
1969N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
1969N/A *
1969N/A * This code is free software; you can redistribute it and/or modify it
1969N/A * under the terms of the GNU General Public License version 2 only, as
1969N/A * published by the Free Software Foundation.
1969N/A *
1969N/A * This code is distributed in the hope that it will be useful, but WITHOUT
1969N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1969N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
1969N/A * version 2 for more details (a copy is included in the LICENSE file that
1969N/A * accompanied this code).
1969N/A *
1969N/A * You should have received a copy of the GNU General Public License version
1969N/A * 2 along with this work; if not, write to the Free Software Foundation,
1969N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1969N/A *
1969N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
1969N/A * or visit www.oracle.com if you need additional information or have any
1969N/A * questions.
1969N/A *
1969N/A */
1969N/A
1969N/A/**
1969N/A * @test
1969N/A * @bug 6579789
1969N/A * @summary Internal error "c1_LinearScan.cpp:1429 Error: assert(false,"")" in debuggee with fastdebug VM
1969N/A * @run main/othervm -Xcomp -XX:UseSSE=0 -XX:CompileOnly=Test6579789.bug Test6579789
1969N/A */
1969N/A
1969N/Apublic class Test6579789 {
1969N/A public static void main(String[] args) {
1969N/A bug(4);
1969N/A }
1969N/A public static void bug(int n) {
1969N/A float f = 1;
1969N/A int i = 1;
1969N/A try {
1969N/A int x = 1 / n; // instruction that can trap
1969N/A f = 2;
1969N/A i = 2;
1969N/A int y = 2 / n; // instruction that can trap
1969N/A } catch (Exception ex) {
1969N/A f++;
1969N/A i++;
1969N/A }
1969N/A }
1969N/A}