hotspot/src/share/vm/gc/g1/g1CardLiveData.cpp
changeset 38061 5fe046aef3b9
parent 37989 e0a0f4de45c4
child 38157 49d65a3ea6b6
equal deleted inserted replaced
38059:86ab3f0a9f87 38061:5fe046aef3b9
    58 
    58 
    59   return map;
    59   return map;
    60 }
    60 }
    61 
    61 
    62 void G1CardLiveData::free_large_bitmap(bm_word_t* bitmap, size_t size_in_bits) {
    62 void G1CardLiveData::free_large_bitmap(bm_word_t* bitmap, size_t size_in_bits) {
    63   MmapArrayAllocator<bm_word_t, mtGC>::free(bitmap, size_in_bits / BitsPerWord);
    63   MmapArrayAllocator<bm_word_t, mtGC>::free(bitmap, BitMap::calc_size_in_words(size_in_bits));
    64 }
    64 }
    65 
    65 
    66 void G1CardLiveData::initialize(size_t max_capacity, uint num_max_regions) {
    66 void G1CardLiveData::initialize(size_t max_capacity, uint num_max_regions) {
    67   assert(max_capacity % num_max_regions == 0,
    67   assert(max_capacity % num_max_regions == 0,
    68          "Given capacity must be evenly divisible by region size.");
    68          "Given capacity must be evenly divisible by region size.");