Skip to content

Commit ec4e8aa

Browse files
committedMar 6, 2023
8303244: G1: call CardTable::clear_MemRegion directly
Reviewed-by: ysr, kbarrett
1 parent 5753ab5 commit ec4e8aa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎src/hotspot/share/gc/g1/g1CardTable.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ void G1CardTable::verify_g1_young_region(MemRegion mr) {
4444
void G1CardTableChangedListener::on_commit(uint start_idx, size_t num_regions, bool zero_filled) {
4545
// Default value for a clean card on the card table is -1. So we cannot take advantage of the zero_filled parameter.
4646
MemRegion mr(G1CollectedHeap::heap()->bottom_addr_for_region(start_idx), num_regions * HeapRegion::GrainWords);
47-
_card_table->clear(mr);
47+
_card_table->clear_MemRegion(mr);
4848
}
4949

5050
void G1CardTable::initialize(G1RegionToSpaceMapper* mapper) {

‎src/hotspot/share/gc/g1/heapRegion.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ void HeapRegion::hr_clear(bool clear_space) {
135135

136136
void HeapRegion::clear_cardtable() {
137137
G1CardTable* ct = G1CollectedHeap::heap()->card_table();
138-
ct->clear(MemRegion(bottom(), end()));
138+
ct->clear_MemRegion(MemRegion(bottom(), end()));
139139
}
140140

141141
void HeapRegion::calc_gc_efficiency() {

0 commit comments

Comments
 (0)
Please sign in to comment.