--- a/src/hotspot/share/gc/g1/g1HotCardCache.hpp Wed Mar 13 12:30:20 2019 -0700
+++ b/src/hotspot/share/gc/g1/g1HotCardCache.hpp Wed Mar 13 21:01:56 2019 +0100
@@ -53,7 +53,10 @@
// code, increasing throughput.
class G1HotCardCache: public CHeapObj<mtGC> {
+public:
+ typedef CardTable::CardValue CardValue;
+private:
G1CollectedHeap* _g1h;
bool _use_cache;
@@ -62,7 +65,7 @@
// The card cache table
- jbyte** _hot_cache;
+ CardValue** _hot_cache;
size_t _hot_cache_size;
@@ -107,7 +110,7 @@
// adding, NULL is returned and no further action in needed.
// If we evict a card from the cache to make room for the new card,
// the evicted card is then returned for refinement.
- jbyte* insert(jbyte* card_ptr);
+ CardValue* insert(CardValue* card_ptr);
// Refine the cards that have delayed as a result of
// being in the cache.