< prev index next >

src/hotspot/share/gc/shared/cardTable.cpp

Print this page
rev 58017 : [mq]: 8238854-remove-superfluous-alloc-checks

*** 59,71 **** assert((uintptr_t(_whole_heap.end()) & (card_size - 1)) == 0, "heap must end at card boundary"); assert(card_size <= 512, "card_size must be less than 512"); // why? _covered = new MemRegion[_max_covered_regions]; - if (_covered == NULL) { - vm_exit_during_initialization("Could not allocate card table covered region set."); - } } CardTable::~CardTable() { if (_covered) { delete[] _covered; --- 59,68 ----
*** 86,98 **** HeapWord* low_bound = _whole_heap.start(); HeapWord* high_bound = _whole_heap.end(); _cur_covered_regions = 0; _committed = new MemRegion[_max_covered_regions]; - if (_committed == NULL) { - vm_exit_during_initialization("Could not allocate card table committed region set."); - } const size_t rs_align = _page_size == (size_t) os::vm_page_size() ? 0 : MAX2(_page_size, (size_t) os::vm_allocation_granularity()); ReservedSpace heap_rs(_byte_map_size, rs_align, false); --- 83,92 ----
< prev index next >