g1OopClosures.inline.hpp revision 1261
2702N/A * Copyright 2001-2007 Sun Microsystems, Inc. All Rights Reserved. 2702N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 2702N/A * This code is free software; you can redistribute it and/or modify it 2702N/A * under the terms of the GNU General Public License version 2 only, as 2702N/A * published by the Free Software Foundation. 2702N/A * This code is distributed in the hope that it will be useful, but WITHOUT 2702N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 2702N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 2702N/A * version 2 for more details (a copy is included in the LICENSE file that 2702N/A * You should have received a copy of the GNU General Public License version 2702N/A * 2 along with this work; if not, write to the Free Software Foundation, 2702N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2702N/A * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 2702N/A * CA 95054 USA or visit www.sun.com if you need additional information or 2702N/A * This really ought to be an inline function, but apparently the C++ 2702N/A * compiler sometimes sees fit to ignore inline declarations. Sigh. 2702N/A// This must a ifdef'ed because the counting it controls is in a 2702N/A// perf-critical inner loop. 2702N/A// This closure is applied to the fields of the objects that have just been copied. 2702N/A // We're not going to even bother checking whether the object is 2702N/A // already forwarded or not, as this usually causes an immediate 2702N/A // stall. We'll try to prefetch the object (for write, given that 2702N/A // we might need to install the forwarding reference) and we'll 2702N/A // get back to it when pop it from the queue 2702N/A // slightly paranoid test; I'm trying to catch potential 2702N/A // problems before we go into push_on_queue to know where the 2702N/A "p should still be pointing to obj");