< prev index next >

src/hotspot/share/gc/g1/g1CardLiveData.cpp

Print this page
rev 48820 : [mq]: 8196602-heapregionclosure-renaming

*** 283,293 **** HeapRegionClosure(), _helper(live_data, g1h->reserved_region().start()), _mark_bitmap(mark_bitmap), _cm(cm) { } ! bool doHeapRegion(HeapRegion* hr) { size_t marked_bytes = _helper.mark_marked_during_marking(_mark_bitmap, hr); if (marked_bytes > 0) { hr->add_to_marked_bytes(marked_bytes); } --- 283,293 ---- HeapRegionClosure(), _helper(live_data, g1h->reserved_region().start()), _mark_bitmap(mark_bitmap), _cm(cm) { } ! bool do_heap_region(HeapRegion* hr) { size_t marked_bytes = _helper.mark_marked_during_marking(_mark_bitmap, hr); if (marked_bytes > 0) { hr->add_to_marked_bytes(marked_bytes); }
*** 350,360 **** G1CardLiveData* live_data) : HeapRegionClosure(), _helper(live_data, g1h->reserved_region().start()), _gc_timestamp_at_create(live_data->gc_timestamp_at_create()) { } ! bool doHeapRegion(HeapRegion* hr) { if (has_been_reclaimed(hr)) { _helper.reset_live_data(hr); } bool allocated_since_marking = _helper.mark_allocated_since_marking(hr); if (allocated_since_marking || hr->next_marked_bytes() > 0) { --- 350,360 ---- G1CardLiveData* live_data) : HeapRegionClosure(), _helper(live_data, g1h->reserved_region().start()), _gc_timestamp_at_create(live_data->gc_timestamp_at_create()) { } ! bool do_heap_region(HeapRegion* hr) { if (has_been_reclaimed(hr)) { _helper.reset_live_data(hr); } bool allocated_since_marking = _helper.mark_allocated_since_marking(hr); if (allocated_since_marking || hr->next_marked_bytes() > 0) {
*** 476,486 **** _exp_live_data(exp_live_data), _failures(0) { } int failures() const { return _failures; } ! bool doHeapRegion(HeapRegion* hr) { int failures = 0; // Walk the marking bitmap for this region and set the corresponding bits // in the expected region and card bitmaps. size_t exp_marked_bytes = create_live_data_count(hr); --- 476,486 ---- _exp_live_data(exp_live_data), _failures(0) { } int failures() const { return _failures; } ! bool do_heap_region(HeapRegion* hr) { int failures = 0; // Walk the marking bitmap for this region and set the corresponding bits // in the expected region and card bitmaps. size_t exp_marked_bytes = create_live_data_count(hr);
< prev index next >