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