4539N/A * Copyright (c) 2001, 2013, 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// A G1RemSet provides ways of iterating over pointers into a selected 1781N/A// A G1RemSet in which each heap region has a rem set that records the 1781N/A// external heap references into it. Uses a mod ref bs to track updates, 1781N/A// so that they can be used to update the individual region remsets. 1625N/A // Used for caching the closure that is responsible for scanning 1625N/A // references into the collection set. 342N/A // This is called to reset dual hash tables after the gc pause 342N/A // is finished and the initial hash table is no longer being 1781N/A // Invoke "blk->do_oop" on all pointers into the CS in objects in regions 1781N/A // outside the CS (having invoked "blk->set_region" to set the "from" 1781N/A // region correctly beforehand.) The "worker_i" param is for the 1781N/A // parallel case where the number of the worker thread calling this 1781N/A // function can be helpful in partitioning the work to be done. It 1781N/A // should be the same as the "i" passed to the calling thread's 1781N/A // work(i) function. In the sequential case this param will be ingored. 1781N/A // Prepare for and cleanup after an oops_into_collection_set_do 1781N/A // call. Must call each of these once before and after (in sequential 1781N/A // code) any threads call oops_into_collection_set_do. (This offers an 1781N/A // opportunity to sequential setup and teardown of structures needed by a 1781N/A // parallel iteration over the CS's RS.) 342N/A // Record, if necessary, the fact that *p (where "p" is in region "from", 342N/A // which is required to be non-NULL) has changed to a new non-NULL value. 1781N/A // Requires "region_bm" and "card_bm" to be bitmaps with 1 bit per region 1781N/A // or card, respectively, such that a region or card with a corresponding 1781N/A // 0 bit contains no part of any live object. Eliminates any remembered 1781N/A // set entries that correspond to dead heap ranges. 1781N/A // Like the above, but assumes is called in parallel: "worker_num" is the 1781N/A // parallel thread id of the current thread, and "claim_val" is the 1781N/A // value that should be used to claim heap regions. 4539N/A // Refine the card corresponding to "card_ptr". 1781N/A // If check_for_refs_into_cset is true, a true result is returned 1781N/A // if the given card contains oops that have references into the 1781N/A // Print any relevant summary info. 1781N/A // Prepare remembered set for verification. 626N/A // Override: this closure is idempotent. 626N/A // bool idempotent() { return true; } 1879N/A#
endif // SHARE_VM_GC_IMPLEMENTATION_G1_G1REMSET_HPP