1297N/A/*
1472N/A * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
1297N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
1297N/A *
1297N/A * This code is free software; you can redistribute it and/or modify it
1297N/A * under the terms of the GNU General Public License version 2 only, as
1297N/A * published by the Free Software Foundation.
1297N/A *
1297N/A * This code is distributed in the hope that it will be useful, but WITHOUT
1297N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1297N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
1297N/A * version 2 for more details (a copy is included in the LICENSE file that
1297N/A * accompanied this code).
1297N/A *
1297N/A * You should have received a copy of the GNU General Public License version
1297N/A * 2 along with this work; if not, write to the Free Software Foundation,
1297N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1297N/A *
1472N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
1472N/A * or visit www.oracle.com if you need additional information or have any
1472N/A * questions.
1297N/A *
1297N/A */
1297N/A
1297N/A/**
1297N/A * @test
1297N/A * @bug 6932496
1297N/A * @summary incorrect deopt of jsr subroutine on 64 bit c1
1297N/A *
1297N/A * @compile -source 1.5 -target 1.5 -XDjsrlimit=0 Test6932496.java
1297N/A * @run main/othervm -Xcomp -XX:CompileOnly=Test6932496.m Test6932496
1297N/A */
1297N/A
1297N/Apublic class Test6932496 {
1297N/A static class A {
1297N/A volatile boolean flag = false;
1297N/A }
1297N/A
1297N/A static void m() {
1297N/A try {
1297N/A } finally {
1297N/A A a = new A();
1297N/A a.flag = true;
1297N/A }
1297N/A }
1297N/A
1297N/A
1297N/A static public void main(String[] args) {
1297N/A m();
1297N/A }
1297N/A}