1879N/A * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. 1612N/A * Copyright 2008, 2009, 2010 Red Hat, Inc. 1612N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1612N/A * This code is free software; you can redistribute it and/or modify it 1612N/A * under the terms of the GNU General Public License version 2 only, as 1612N/A * published by the Free Software Foundation. 1612N/A * This code is distributed in the hope that it will be useful, but WITHOUT 1612N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1612N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1612N/A * version 2 for more details (a copy is included in the LICENSE file that 1612N/A * You should have received a copy of the GNU General Public License version 1612N/A * 2 along with this work; if not, write to the Free Software Foundation, 1612N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 1612N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 1612N/A // Retry fast entry if bias is revoked to avoid unnecessary inflation 1612N/A // Make sure we are not instantiating an abstract klass 1612N/A // Make sure klass is initialized 1612N/A // At this point the class may not be fully initialized 1612N/A // because of recursive initialization. If it is fully 1612N/A // initialized & has_finalized is not set, we rewrite 1612N/A // it into its fast version (Note: no locking is needed 1612N/A // here since this is an atomic byte write and can be 1612N/A // Note: In case of classes with has_finalized we don't 1612N/A // rewrite since that saves us an extra check in 1612N/A // the fast version which then would call the 1612N/A // slow version anyway (and do a call back into 1612N/A // If we have a breakpoint, then we don't rewrite 1612N/A // because the _breakpoint bytecode would be lost. 1612N/A// Nothing in these must ever GC! 1612N/A // In C2, uncommon_trap_blob creates a frame, so all the various 1612N/A // deoptimization functions expect to find the frame of the method 1612N/A // being deopted one frame down on the stack. We create a dummy 1612N/A // Pop our dummy frame and the frame being deoptimized 1612N/A // Push another dummy frame 1612N/A // Fill in the skeleton frames 1612N/A // Fall back into the interpreter