src/hotspot/share/gc/g1/g1FullGCPrepareTask.cpp
changeset 58644 64597a6fd186
parent 51332 c25572739e7c
--- a/src/hotspot/share/gc/g1/g1FullGCPrepareTask.cpp	Wed Oct 16 11:52:56 2019 +0200
+++ b/src/hotspot/share/gc/g1/g1FullGCPrepareTask.cpp	Wed Oct 16 12:36:44 2019 +0200
@@ -114,8 +114,9 @@
   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);
   }
 }