3120N/A * Copyright (c) 2001, 2012, 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 342N/A * This really ought to be an inline function, but apparently the C++ 342N/A * compiler sometimes sees fit to ignore inline declarations. Sigh. 845N/A// This closure is applied to the fields of the objects that have just been copied. 845N/A // We're not going to even bother checking whether the object is 845N/A // already forwarded or not, as this usually causes an immediate 845N/A // stall. We'll try to prefetch the object (for write, given that 845N/A // we might need to install the forwarding reference) and we'll 845N/A // get back to it when pop it from the queue 845N/A // slightly paranoid test; I'm trying to catch potential 845N/A // problems before we go into push_on_queue to know where the 845N/A // problem is coming from 2969N/A "p should still be pointing to obj or to its forwardee");
1625N/A // Place on the references queue 3122N/A // Apply first closure; then apply the second. 3122N/A // Record that this closure was actually applied (triggered). 3122N/A // can't do because of races 3122N/A // assert(obj == NULL || obj->is_oop(), "expected an oop"); 3122N/A // Do the safe subset of is_oop 3122N/A#
endif // CHECK_UNHANDLED_OOPS 3122N/A // The _record_refs_into_cset flag is true during the RSet 3122N/A // updating part of an evacuation pause. It is false at all 3122N/A // * rebuilding the rembered sets after a full GC 3122N/A // * during concurrent refinement. 3122N/A // * updating the remembered sets of regions in the collection 3122N/A // set in the event of an evacuation failure (when deferred 3122N/A // We are recording references that point into the collection 3122N/A // set and this particular reference does exactly that... 3122N/A // If the referenced object has already been forwarded 3122N/A // to itself, we are handling an evacuation failure and 3122N/A // there is no need to retry. 3122N/A // Push the reference in the refs queue of the G1ParScanThreadState 3122N/A // instance for this worker thread. 3122N/A // Deferred updates to the CSet are either discarded (in the normal case), 3122N/A // or processed (if an evacuation failure occurs) at the end 3122N/A // See G1RemSet::cleanup_after_oops_into_collection_set_do(). 3917N/A // We either don't care about pushing references that point into the 3917N/A // collection set (i.e. we're not during an evacuation pause) _or_ 3917N/A // the reference doesn't point into the collection set. Either way 3917N/A // we add the reference directly to the RSet of the region containing 1879N/A#
endif // SHARE_VM_GC_IMPLEMENTATION_G1_G1OOPCLOSURES_INLINE_HPP