src/hotspot/share/gc/shared/cardTable.cpp
changeset 51332 c25572739e7c
parent 49194 ece10494786c
child 54110 f4f0dce5d0bb
equal deleted inserted replaced
51331:7939b3c4e408 51332:c25572739e7c
    43 
    43 
    44 CardTable::CardTable(MemRegion whole_heap, bool conc_scan) :
    44 CardTable::CardTable(MemRegion whole_heap, bool conc_scan) :
    45   _scanned_concurrently(conc_scan),
    45   _scanned_concurrently(conc_scan),
    46   _whole_heap(whole_heap),
    46   _whole_heap(whole_heap),
    47   _guard_index(0),
    47   _guard_index(0),
    48   _guard_region(),
       
    49   _last_valid_index(0),
    48   _last_valid_index(0),
    50   _page_size(os::vm_page_size()),
    49   _page_size(os::vm_page_size()),
    51   _byte_map_size(0),
    50   _byte_map_size(0),
       
    51   _byte_map(NULL),
       
    52   _byte_map_base(NULL),
       
    53   _cur_covered_regions(0),
    52   _covered(NULL),
    54   _covered(NULL),
    53   _committed(NULL),
    55   _committed(NULL),
    54   _cur_covered_regions(0),
    56   _guard_region()
    55   _byte_map(NULL),
       
    56   _byte_map_base(NULL)
       
    57 {
    57 {
    58   assert((uintptr_t(_whole_heap.start())  & (card_size - 1))  == 0, "heap must start at card boundary");
    58   assert((uintptr_t(_whole_heap.start())  & (card_size - 1))  == 0, "heap must start at card boundary");
    59   assert((uintptr_t(_whole_heap.end()) & (card_size - 1))  == 0, "heap must end at card boundary");
    59   assert((uintptr_t(_whole_heap.end()) & (card_size - 1))  == 0, "heap must end at card boundary");
    60 
    60 
    61   assert(card_size <= 512, "card_size must be less than 512"); // why?
    61   assert(card_size <= 512, "card_size must be less than 512"); // why?