TestDeoptInt6769124.java revision 1060
1060N/A * Copyright 2009 Sun Microsystems, Inc. All Rights Reserved. 1060N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1060N/A * This code is free software; you can redistribute it and/or modify it 1060N/A * under the terms of the GNU General Public License version 2 only, as 1060N/A * published by the Free Software Foundation. 1060N/A * This code is distributed in the hope that it will be useful, but WITHOUT 1060N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1060N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1060N/A * version 2 for more details (a copy is included in the LICENSE file that 1060N/A * You should have received a copy of the GNU General Public License version 1060N/A * 2 along with this work; if not, write to the Free Software Foundation, 1060N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 1060N/A * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 1060N/A * CA 95054 USA or visit www.sun.com if you need additional information or 1060N/A * @summary int value might not be correctly decoded on deopt with c1 on 64 bit 1060N/A * @run main/othervm -Xcomp -XX:CompileOnly=TestDeoptInt6769124.m TestDeoptInt6769124 1060N/A c = b + a.
vl;
//accessing volatile field of class not loaded at compile time forces a deopt