comparison src/share/vm/gc_implementation/parallelScavenge/cardTableExtension.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 f81a7c0c618d
children a837fa3d3f86
comparison
equal deleted inserted replaced
10160:ed5a590835a4 10161:746b070f5022
565 if(new_start_aligned < new_end_for_commit) { 565 if(new_start_aligned < new_end_for_commit) {
566 MemRegion new_committed = 566 MemRegion new_committed =
567 MemRegion(new_start_aligned, new_end_for_commit); 567 MemRegion(new_start_aligned, new_end_for_commit);
568 if (!os::commit_memory((char*)new_committed.start(), 568 if (!os::commit_memory((char*)new_committed.start(),
569 new_committed.byte_size())) { 569 new_committed.byte_size())) {
570 vm_exit_out_of_memory(new_committed.byte_size(), 570 vm_exit_out_of_memory(new_committed.byte_size(), OOM_MMAP_ERROR,
571 "card table expansion"); 571 "card table expansion");
572 } 572 }
573 } 573 }
574 result = true; 574 result = true;
575 } else if (new_start_aligned > cur_committed.start()) { 575 } else if (new_start_aligned > cur_committed.start()) {