comparison src/share/vm/gc_implementation/g1/g1HotCardCache.cpp @ 20481:c02ec279b062

8057768: Make heap region region type in G1 HeapRegion explicit Reviewed-by: brutisso, tschatzl
author brutisso
date Tue, 16 Sep 2014 14:27:40 +0200
parents 1f1d373cd044
children
comparison
equal deleted inserted replaced
20478:00448aa81791 20481:c02ec279b062
25 #include "precompiled.hpp" 25 #include "precompiled.hpp"
26 #include "gc_implementation/g1/dirtyCardQueue.hpp" 26 #include "gc_implementation/g1/dirtyCardQueue.hpp"
27 #include "gc_implementation/g1/g1CollectedHeap.inline.hpp" 27 #include "gc_implementation/g1/g1CollectedHeap.inline.hpp"
28 #include "gc_implementation/g1/g1HotCardCache.hpp" 28 #include "gc_implementation/g1/g1HotCardCache.hpp"
29 #include "gc_implementation/g1/g1RemSet.hpp" 29 #include "gc_implementation/g1/g1RemSet.hpp"
30 #include "gc_implementation/g1/heapRegion.hpp"
31 #include "runtime/atomic.hpp" 30 #include "runtime/atomic.hpp"
32 31
33 G1HotCardCache::G1HotCardCache(G1CollectedHeap *g1h): 32 G1HotCardCache::G1HotCardCache(G1CollectedHeap *g1h):
34 _g1h(g1h), _hot_cache(NULL), _use_cache(false), _card_counts(g1h) {} 33 _g1h(g1h), _hot_cache(NULL), _use_cache(false), _card_counts(g1h) {}
35 34
134 // The existing entries in the hot card cache, which were just refined 133 // The existing entries in the hot card cache, which were just refined
135 // above, are discarded prior to re-enabling the cache near the end of the GC. 134 // above, are discarded prior to re-enabling the cache near the end of the GC.
136 } 135 }
137 136
138 void G1HotCardCache::reset_card_counts(HeapRegion* hr) { 137 void G1HotCardCache::reset_card_counts(HeapRegion* hr) {
139 assert(!hr->isHumongous(), "Should have been cleared");
140 _card_counts.clear_region(hr); 138 _card_counts.clear_region(hr);
141 } 139 }
142 140
143 void G1HotCardCache::reset_card_counts() { 141 void G1HotCardCache::reset_card_counts() {
144 _card_counts.clear_all(); 142 _card_counts.clear_all();