664 // |+ cur committed +++++++++++| |
664 // |+ cur committed +++++++++++| |
665 // |+ new committed +++++++| |
665 // |+ new committed +++++++| |
666 |
666 |
667 HeapWord* new_end_for_commit = |
667 HeapWord* new_end_for_commit = |
668 MIN2(cur_committed.end(), _guard_region.start()); |
668 MIN2(cur_committed.end(), _guard_region.start()); |
669 MemRegion new_committed = |
669 if(new_start_aligned < new_end_for_commit) { |
670 MemRegion(new_start_aligned, new_end_for_commit); |
670 MemRegion new_committed = |
671 if(!new_committed.is_empty()) { |
671 MemRegion(new_start_aligned, new_end_for_commit); |
672 if (!os::commit_memory((char*)new_committed.start(), |
672 if (!os::commit_memory((char*)new_committed.start(), |
673 new_committed.byte_size())) { |
673 new_committed.byte_size())) { |
674 vm_exit_out_of_memory(new_committed.byte_size(), |
674 vm_exit_out_of_memory(new_committed.byte_size(), |
675 "card table expansion"); |
675 "card table expansion"); |
676 } |
676 } |