g1RemSet.hpp revision 3008
823N/A * Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved. 823N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 823N/A * This code is free software; you can redistribute it and/or modify it 823N/A * under the terms of the GNU General Public License version 2 only, as 823N/A * published by the Free Software Foundation. 823N/A * This code is distributed in the hope that it will be useful, but WITHOUT 823N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 823N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 823N/A * version 2 for more details (a copy is included in the LICENSE file that 823N/A * accompanied this code). 823N/A * You should have received a copy of the GNU General Public License version 823N/A * 2 along with this work; if not, write to the Free Software Foundation, 823N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 873N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 823N/A// A G1RemSet provides ways of iterating over pointers into a selected 823N/A// A G1RemSet in which each heap region has a rem set that records the 823N/A// external heap references into it. Uses a mod ref bs to track updates, 823N/A// so that they can be used to update the individual region remsets. 1928N/A // Used for caching the closure that is responsible for scanning 1928N/A // references into the collection set. 1928N/A // The routine that performs the actual work of refining a dirty 823N/A // If check_for_refs_into_refs is true then a true result is returned 823N/A // if the card contains oops that have references into the current 823N/A // This is called to reset dual hash tables after the gc pause 823N/A // is finished and the initial hash table is no longer being 823N/A // Invoke "blk->do_oop" on all pointers into the CS in objects in regions 823N/A // outside the CS (having invoked "blk->set_region" to set the "from" 823N/A // region correctly beforehand.) The "worker_i" param is for the 823N/A // parallel case where the number of the worker thread calling this 823N/A // function can be helpful in partitioning the work to be done. It 823N/A // should be the same as the "i" passed to the calling thread's 823N/A // work(i) function. In the sequential case this param will be ingored. 823N/A // Prepare for and cleanup after an oops_into_collection_set_do 823N/A // call. Must call each of these once before and after (in sequential 823N/A // code) any threads call oops_into_collection_set_do. (This offers an 823N/A // opportunity to sequential setup and teardown of structures needed by a 823N/A // parallel iteration over the CS's RS.) 823N/A // Record, if necessary, the fact that *p (where "p" is in region "from", 823N/A // which is required to be non-NULL) has changed to a new non-NULL value. 823N/A // Requires "region_bm" and "card_bm" to be bitmaps with 1 bit per region 823N/A // or card, respectively, such that a region or card with a corresponding 823N/A // 0 bit contains no part of any live object. Eliminates any remembered // set entries that correspond to dead heap ranges. // Like the above, but assumes is called in parallel: "worker_num" is the // parallel thread id of the current thread, and "claim_val" is the // value that should be used to claim heap regions. // Refine the card corresponding to "card_ptr". If "sts" is non-NULL, // join and leave around parts that must be atomic wrt GC. (NULL means // being done at a safepoint.) // If check_for_refs_into_cset is true, a true result is returned // if the given card contains oops that have references into the // current collection set. // Print any relevant summary info. // Prepare remembered set for verification. // Override: this closure is idempotent. // bool idempotent() { return true; } #
endif // SHARE_VM_GC_IMPLEMENTATION_G1_G1REMSET_HPP