570 PerRegionTable* OtherRegionsTable::delete_region_table() { |
570 PerRegionTable* OtherRegionsTable::delete_region_table() { |
571 assert(_m->owned_by_self(), "Precondition"); |
571 assert(_m->owned_by_self(), "Precondition"); |
572 assert(_n_fine_entries == _max_fine_entries, "Precondition"); |
572 assert(_n_fine_entries == _max_fine_entries, "Precondition"); |
573 PerRegionTable* max = NULL; |
573 PerRegionTable* max = NULL; |
574 jint max_occ = 0; |
574 jint max_occ = 0; |
575 PerRegionTable** max_prev; |
575 PerRegionTable** max_prev = NULL; |
576 size_t max_ind; |
576 size_t max_ind; |
577 |
577 |
578 size_t i = _fine_eviction_start; |
578 size_t i = _fine_eviction_start; |
579 for (size_t k = 0; k < _fine_eviction_sample_size; k++) { |
579 for (size_t k = 0; k < _fine_eviction_sample_size; k++) { |
580 size_t ii = i; |
580 size_t ii = i; |
606 if (_fine_eviction_start >= _n_fine_entries) { |
606 if (_fine_eviction_start >= _n_fine_entries) { |
607 _fine_eviction_start -= _n_fine_entries; |
607 _fine_eviction_start -= _n_fine_entries; |
608 } |
608 } |
609 |
609 |
610 guarantee(max != NULL, "Since _n_fine_entries > 0"); |
610 guarantee(max != NULL, "Since _n_fine_entries > 0"); |
|
611 guarantee(max_prev != NULL, "Since max != NULL."); |
611 |
612 |
612 // Set the corresponding coarse bit. |
613 // Set the corresponding coarse bit. |
613 size_t max_hrm_index = (size_t) max->hr()->hrm_index(); |
614 size_t max_hrm_index = (size_t) max->hr()->hrm_index(); |
614 if (!_coarse_map.at(max_hrm_index)) { |
615 if (!_coarse_map.at(max_hrm_index)) { |
615 _coarse_map.at_put(max_hrm_index, true); |
616 _coarse_map.at_put(max_hrm_index, true); |
1166 } |
1167 } |
1167 } |
1168 } |
1168 |
1169 |
1169 void HeapRegionRemSet::print_recorded() { |
1170 void HeapRegionRemSet::print_recorded() { |
1170 int cur_evnt = 0; |
1171 int cur_evnt = 0; |
1171 Event cur_evnt_kind; |
1172 Event cur_evnt_kind = Event_illegal; |
1172 int cur_evnt_ind = 0; |
1173 int cur_evnt_ind = 0; |
1173 if (_n_recorded_events > 0) { |
1174 if (_n_recorded_events > 0) { |
1174 cur_evnt_kind = _recorded_events[cur_evnt]; |
1175 cur_evnt_kind = _recorded_events[cur_evnt]; |
1175 cur_evnt_ind = _recorded_event_index[cur_evnt]; |
1176 cur_evnt_ind = _recorded_event_index[cur_evnt]; |
1176 } |
1177 } |