--- old/src/share/vm/gc_implementation/g1/g1SATBCardTableModRefBS.hpp 2015-04-21 14:30:21.021122805 +0200 +++ new/src/share/vm/gc_implementation/g1/g1SATBCardTableModRefBS.hpp 2015-04-21 14:30:20.955120894 +0200 @@ -25,6 +25,7 @@ #ifndef SHARE_VM_GC_IMPLEMENTATION_G1_G1SATBCARDTABLEMODREFBS_HPP #define SHARE_VM_GC_IMPLEMENTATION_G1_G1SATBCARDTABLEMODREFBS_HPP +#include "gc_implementation/g1/g1BlockOffsetTable.hpp" #include "gc_implementation/g1/g1RegionToSpaceMapper.hpp" #include "memory/cardTableModRefBS.hpp" #include "memory/memRegion.hpp" @@ -153,6 +154,11 @@ return ReservedSpace::allocation_align_size_up(number_of_slots); } + // Returns how many bytes of the heap a single byte of the Card Table corresponds to. + static size_t heap_map_factor() { + return G1BlockOffsetSharedArray::heap_map_factor(); + } + G1SATBCardTableLoggingModRefBS(MemRegion whole_heap); virtual void initialize() { }