comparison src/hotspot/share/gc/g1/g1CardLiveData.cpp @ 49129:f323537c9b75

8196602: Change HeapRegionClosure to comply to naming conventions Reviewed-by: kbarrett, sjohanss
author tschatzl
date Fri, 09 Feb 2018 13:09:55 +0100
parents 5caa1d5f74c1
children f9884e190f2b
comparison
equal deleted inserted replaced
3:ba87743626e7 4:ece1cb43f661
283 HeapRegionClosure(), 283 HeapRegionClosure(),
284 _helper(live_data, g1h->reserved_region().start()), 284 _helper(live_data, g1h->reserved_region().start()),
285 _mark_bitmap(mark_bitmap), 285 _mark_bitmap(mark_bitmap),
286 _cm(cm) { } 286 _cm(cm) { }
287 287
288 bool doHeapRegion(HeapRegion* hr) { 288 bool do_heap_region(HeapRegion* hr) {
289 size_t marked_bytes = _helper.mark_marked_during_marking(_mark_bitmap, hr); 289 size_t marked_bytes = _helper.mark_marked_during_marking(_mark_bitmap, hr);
290 if (marked_bytes > 0) { 290 if (marked_bytes > 0) {
291 hr->add_to_marked_bytes(marked_bytes); 291 hr->add_to_marked_bytes(marked_bytes);
292 } 292 }
293 293
350 G1CardLiveData* live_data) : 350 G1CardLiveData* live_data) :
351 HeapRegionClosure(), 351 HeapRegionClosure(),
352 _helper(live_data, g1h->reserved_region().start()), 352 _helper(live_data, g1h->reserved_region().start()),
353 _gc_timestamp_at_create(live_data->gc_timestamp_at_create()) { } 353 _gc_timestamp_at_create(live_data->gc_timestamp_at_create()) { }
354 354
355 bool doHeapRegion(HeapRegion* hr) { 355 bool do_heap_region(HeapRegion* hr) {
356 if (has_been_reclaimed(hr)) { 356 if (has_been_reclaimed(hr)) {
357 _helper.reset_live_data(hr); 357 _helper.reset_live_data(hr);
358 } 358 }
359 bool allocated_since_marking = _helper.mark_allocated_since_marking(hr); 359 bool allocated_since_marking = _helper.mark_allocated_since_marking(hr);
360 if (allocated_since_marking || hr->next_marked_bytes() > 0) { 360 if (allocated_since_marking || hr->next_marked_bytes() > 0) {
476 _exp_live_data(exp_live_data), 476 _exp_live_data(exp_live_data),
477 _failures(0) { } 477 _failures(0) { }
478 478
479 int failures() const { return _failures; } 479 int failures() const { return _failures; }
480 480
481 bool doHeapRegion(HeapRegion* hr) { 481 bool do_heap_region(HeapRegion* hr) {
482 int failures = 0; 482 int failures = 0;
483 483
484 // Walk the marking bitmap for this region and set the corresponding bits 484 // Walk the marking bitmap for this region and set the corresponding bits
485 // in the expected region and card bitmaps. 485 // in the expected region and card bitmaps.
486 size_t exp_marked_bytes = create_live_data_count(hr); 486 size_t exp_marked_bytes = create_live_data_count(hr);