Thu, 25 Aug 2011 17:17:59 -0700
Added tag jdk8-b02 for changeset 31e253c1da42
roland@1732 | 1 | /* |
trims@1907 | 2 | * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. |
roland@1732 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
roland@1732 | 4 | * |
roland@1732 | 5 | * This code is free software; you can redistribute it and/or modify it |
roland@1732 | 6 | * under the terms of the GNU General Public License version 2 only, as |
roland@1732 | 7 | * published by the Free Software Foundation. |
roland@1732 | 8 | * |
roland@1732 | 9 | * This code is distributed in the hope that it will be useful, but WITHOUT |
roland@1732 | 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
roland@1732 | 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
roland@1732 | 12 | * version 2 for more details (a copy is included in the LICENSE file that |
roland@1732 | 13 | * accompanied this code). |
roland@1732 | 14 | * |
roland@1732 | 15 | * You should have received a copy of the GNU General Public License version |
roland@1732 | 16 | * 2 along with this work; if not, write to the Free Software Foundation, |
roland@1732 | 17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
roland@1732 | 18 | * |
trims@1907 | 19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
trims@1907 | 20 | * or visit www.oracle.com if you need additional information or have any |
trims@1907 | 21 | * questions. |
roland@1732 | 22 | * |
roland@1732 | 23 | */ |
roland@1732 | 24 | |
roland@1732 | 25 | /** |
roland@1732 | 26 | * @test |
roland@1732 | 27 | * @bug 6932496 |
roland@1732 | 28 | * @summary incorrect deopt of jsr subroutine on 64 bit c1 |
roland@1732 | 29 | * |
roland@1732 | 30 | * @compile -source 1.5 -target 1.5 -XDjsrlimit=0 Test6932496.java |
roland@1732 | 31 | * @run main/othervm -Xcomp -XX:CompileOnly=Test6932496.m Test6932496 |
roland@1732 | 32 | */ |
roland@1732 | 33 | |
roland@1732 | 34 | public class Test6932496 { |
roland@1732 | 35 | static class A { |
roland@1732 | 36 | volatile boolean flag = false; |
roland@1732 | 37 | } |
roland@1732 | 38 | |
roland@1732 | 39 | static void m() { |
roland@1732 | 40 | try { |
roland@1732 | 41 | } finally { |
roland@1732 | 42 | A a = new A(); |
roland@1732 | 43 | a.flag = true; |
roland@1732 | 44 | } |
roland@1732 | 45 | } |
roland@1732 | 46 | |
roland@1732 | 47 | |
roland@1732 | 48 | static public void main(String[] args) { |
roland@1732 | 49 | m(); |
roland@1732 | 50 | } |
roland@1732 | 51 | } |