--- old/src/share/vm/gc/g1/g1ParScanThreadState.hpp 2017-04-25 16:44:39.675175030 +0200 +++ new/src/share/vm/gc/g1/g1ParScanThreadState.hpp 2017-04-25 16:44:39.531175035 +0200 @@ -26,11 +26,11 @@ #define SHARE_VM_GC_G1_G1PARSCANTHREADSTATE_HPP #include "gc/g1/dirtyCardQueue.hpp" +#include "gc/g1/g1CardTable.hpp" #include "gc/g1/g1CollectedHeap.hpp" #include "gc/g1/g1OopClosures.hpp" #include "gc/g1/g1Policy.hpp" #include "gc/g1/g1RemSet.hpp" -#include "gc/g1/g1SATBCardTableModRefBS.hpp" #include "gc/shared/ageTable.hpp" #include "memory/allocation.hpp" #include "oops/oop.hpp" @@ -45,7 +45,7 @@ G1CollectedHeap* _g1h; RefToScanQueue* _refs; DirtyCardQueue _dcq; - G1SATBCardTableModRefBS* _ct_bs; + G1CardTable* _ct; G1EvacuationRootClosures* _closures; G1PLABAllocator* _plab_allocator; @@ -72,7 +72,7 @@ #define PADDING_ELEM_NUM (DEFAULT_CACHE_LINE_SIZE / sizeof(size_t)) DirtyCardQueue& dirty_card_queue() { return _dcq; } - G1SATBCardTableModRefBS* ctbs() { return _ct_bs; } + G1CardTable* ct() { return _ct; } InCSetState dest(InCSetState original) const { assert(original.is_valid(), @@ -103,10 +103,10 @@ // If the new value of the field points to the same region or // is the to-space, we don't need to include it in the Rset updates. if (!HeapRegion::is_in_same_region(p, o) && !from->is_young()) { - size_t card_index = ctbs()->index_for(p); + size_t card_index = ct()->index_for(p); // If the card hasn't been added to the buffer, do it. - if (ctbs()->mark_card_deferred(card_index)) { - dirty_card_queue().enqueue((jbyte*)ctbs()->byte_for_index(card_index)); + if (ct()->mark_card_deferred(card_index)) { + dirty_card_queue().enqueue((jbyte*)ct()->byte_for_index(card_index)); } } }