comparison src/share/vm/gc_implementation/parallelScavenge/objectStartArray.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 da91efe96a93
children de6a9e811145
comparison
equal deleted inserted replaced
10160:ed5a590835a4 10161:746b070f5022
97 97
98 if (requested_blocks_size_in_bytes > current_blocks_size_in_bytes) { 98 if (requested_blocks_size_in_bytes > current_blocks_size_in_bytes) {
99 // Expand 99 // Expand
100 size_t expand_by = requested_blocks_size_in_bytes - current_blocks_size_in_bytes; 100 size_t expand_by = requested_blocks_size_in_bytes - current_blocks_size_in_bytes;
101 if (!_virtual_space.expand_by(expand_by)) { 101 if (!_virtual_space.expand_by(expand_by)) {
102 vm_exit_out_of_memory(expand_by, "object start array expansion"); 102 vm_exit_out_of_memory(expand_by, OOM_MMAP_ERROR, "object start array expansion");
103 } 103 }
104 // Clear *only* the newly allocated region 104 // Clear *only* the newly allocated region
105 memset(_blocks_region.end(), clean_block, expand_by); 105 memset(_blocks_region.end(), clean_block, expand_by);
106 } 106 }
107 107