comparison src/share/vm/gc_implementation/g1/heapRegionRemSet.cpp @ 10161:746b070f5022

8011661: Insufficient memory message says "malloc" when sometimes it should say "mmap" Reviewed-by: coleenp, zgu, hseigel
author ccheung
date Tue, 30 Apr 2013 11:56:52 -0700
parents 5a9fa2ba85f0
children d58c62b7447d
comparison
equal deleted inserted replaced
10160:ed5a590835a4 10161:746b070f5022
283 } 283 }
284 284
285 _fine_grain_regions = new PerRegionTablePtr[_max_fine_entries]; 285 _fine_grain_regions = new PerRegionTablePtr[_max_fine_entries];
286 286
287 if (_fine_grain_regions == NULL) { 287 if (_fine_grain_regions == NULL) {
288 vm_exit_out_of_memory(sizeof(void*)*_max_fine_entries, 288 vm_exit_out_of_memory(sizeof(void*)*_max_fine_entries, OOM_MALLOC_ERROR,
289 "Failed to allocate _fine_grain_entries."); 289 "Failed to allocate _fine_grain_entries.");
290 } 290 }
291 291
292 for (size_t i = 0; i < _max_fine_entries; i++) { 292 for (size_t i = 0; i < _max_fine_entries; i++) {
293 _fine_grain_regions[i] = NULL; 293 _fine_grain_regions[i] = NULL;