286 _fine_eviction_sample_size = MAX2((size_t)4, max_entries_log); |
286 _fine_eviction_sample_size = MAX2((size_t)4, max_entries_log); |
287 _fine_eviction_stride = _max_fine_entries / _fine_eviction_sample_size; |
287 _fine_eviction_stride = _max_fine_entries / _fine_eviction_sample_size; |
288 } |
288 } |
289 |
289 |
290 _fine_grain_regions = NEW_C_HEAP_ARRAY3(PerRegionTablePtr, _max_fine_entries, |
290 _fine_grain_regions = NEW_C_HEAP_ARRAY3(PerRegionTablePtr, _max_fine_entries, |
291 mtGC, 0, AllocFailStrategy::RETURN_NULL); |
291 mtGC, CURRENT_PC, AllocFailStrategy::RETURN_NULL); |
292 |
292 |
293 if (_fine_grain_regions == NULL) { |
293 if (_fine_grain_regions == NULL) { |
294 vm_exit_out_of_memory(sizeof(void*)*_max_fine_entries, OOM_MALLOC_ERROR, |
294 vm_exit_out_of_memory(sizeof(void*)*_max_fine_entries, OOM_MALLOC_ERROR, |
295 "Failed to allocate _fine_grain_entries."); |
295 "Failed to allocate _fine_grain_entries."); |
296 } |
296 } |