< prev index next >
src/share/vm/gc_implementation/g1/g1SATBCardTableModRefBS.hpp
Print this page
rev 8203 : [mq]: 8073632-cleanup-translation-factor-usage
*** 23,32 ****
--- 23,33 ----
*/
#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"
#include "oops/oop.hpp"
#include "utilities/macros.hpp"
*** 151,160 ****
--- 152,166 ----
static size_t compute_size(size_t mem_region_size_in_words) {
size_t number_of_slots = (mem_region_size_in_words / card_size_in_words);
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() { }
virtual void initialize(G1RegionToSpaceMapper* mapper);
< prev index next >