8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #ifndef SHARE_VM_GC_G1_G1REMSET_HPP
26 #define SHARE_VM_GC_G1_G1REMSET_HPP
27
28 #include "gc/g1/g1RemSetSummary.hpp"
29
30 // A G1RemSet provides ways of iterating over pointers into a selected
31 // collection set.
32
33 class G1CollectedHeap;
34 class ConcurrentG1Refine;
35 class G1ParPushHeapRSClosure;
36 class outputStream;
37
38 // A G1RemSet in which each heap region has a rem set that records the
39 // external heap references into it. Uses a mod ref bs to track updates,
40 // so that they can be used to update the individual region remsets.
41
42 class G1RemSet: public CHeapObj<mtGC> {
43 private:
44 G1RemSetSummary _prev_period_summary;
45
46 // A DirtyCardQueueSet that is used to hold cards that contain
47 // references into the current collection set. This is used to
48 // update the remembered sets of the regions in the collection
49 // set in the event of an evacuation failure.
50 DirtyCardQueueSet _into_cset_dirty_card_queue_set;
51
52 protected:
53 G1CollectedHeap* _g1;
54 size_t _conc_refine_cards;
55 uint n_workers();
56
|
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #ifndef SHARE_VM_GC_G1_G1REMSET_HPP
26 #define SHARE_VM_GC_G1_G1REMSET_HPP
27
28 #include "gc/g1/dirtyCardQueue.hpp"
29 #include "gc/g1/g1RemSetSummary.hpp"
30 #include "gc/g1/heapRegion.hpp"
31 #include "memory/allocation.hpp"
32 #include "memory/iterator.hpp"
33
34 // A G1RemSet provides ways of iterating over pointers into a selected
35 // collection set.
36
37 class BitMap;
38 class CardTableModRefBS;
39 class G1BlockOffsetSharedArray;
40 class ConcurrentG1Refine;
41 class CodeBlobClosure;
42 class G1CollectedHeap;
43 class G1CollectorPolicy;
44 class G1ParPushHeapRSClosure;
45 class G1SATBCardTableModRefBS;
46 class HeapRegionClaimer;
47
48 // A G1RemSet in which each heap region has a rem set that records the
49 // external heap references into it. Uses a mod ref bs to track updates,
50 // so that they can be used to update the individual region remsets.
51
52 class G1RemSet: public CHeapObj<mtGC> {
53 private:
54 G1RemSetSummary _prev_period_summary;
55
56 // A DirtyCardQueueSet that is used to hold cards that contain
57 // references into the current collection set. This is used to
58 // update the remembered sets of the regions in the collection
59 // set in the event of an evacuation failure.
60 DirtyCardQueueSet _into_cset_dirty_card_queue_set;
61
62 protected:
63 G1CollectedHeap* _g1;
64 size_t _conc_refine_cards;
65 uint n_workers();
66
|