8232260: Remove g1 prefix in G1CollectedHeap::g1_hot_card_cache() getter

Reviewed-by: kbarrett, sjohanss
This commit is contained in:
Thomas Schatzl 2019-10-16 12:36:44 +02:00
parent 79c1634258
commit 1c9dd15716
3 changed files with 5 additions and 5 deletions

View File

@ -4076,7 +4076,7 @@ private:
Atomic::add(r->rem_set()->occupied_locked(), &_rs_length);
if (!is_young) {
g1h->_hot_card_cache->reset_card_counts(r);
g1h->hot_card_cache()->reset_card_counts(r);
}
if (!evacuation_failed) {

View File

@ -129,7 +129,6 @@ class G1RegionMappingChangedListener : public G1MappingChangedListener {
};
class G1CollectedHeap : public CollectedHeap {
friend class G1FreeCollectionSetTask;
friend class VM_CollectForMetadataAllocation;
friend class VM_G1CollectForAllocation;
friend class VM_G1CollectFull;
@ -1138,7 +1137,7 @@ public:
return _reserved.contains(addr);
}
G1HotCardCache* g1_hot_card_cache() const { return _hot_card_cache; }
G1HotCardCache* hot_card_cache() const { return _hot_card_cache; }
G1CardTable* card_table() const {
return _card_table;

View File

@ -114,8 +114,9 @@ void G1FullGCPrepareTask::G1CalculatePointersClosure::reset_region_metadata(Heap
hr->rem_set()->clear();
hr->clear_cardtable();
if (_g1h->g1_hot_card_cache()->use_cache()) {
_g1h->g1_hot_card_cache()->reset_card_counts(hr);
G1HotCardCache* hcc = _g1h->hot_card_cache();
if (hcc->use_cache()) {
hcc->reset_card_counts(hr);
}
}