hotspot/src/share/vm/memory/allocation.inline.hpp
changeset 17302 915323420691
parent 17087 f0b76c4c93a0
child 17376 4ee999c3c007
equal deleted inserted replaced
17300:dcff0b4a77f7 17302:915323420691
   130   }
   130   }
   131 
   131 
   132   int alignment = os::vm_allocation_granularity();
   132   int alignment = os::vm_allocation_granularity();
   133   _size = align_size_up(_size, alignment);
   133   _size = align_size_up(_size, alignment);
   134 
   134 
   135   _addr = os::reserve_memory(_size, NULL, alignment);
   135   _addr = os::reserve_memory(_size, NULL, alignment, F);
   136   if (_addr == NULL) {
   136   if (_addr == NULL) {
   137     vm_exit_out_of_memory(_size, OOM_MMAP_ERROR, "Allocator (reserve)");
   137     vm_exit_out_of_memory(_size, OOM_MMAP_ERROR, "Allocator (reserve)");
   138   }
   138   }
   139 
   139 
   140   bool success = os::commit_memory(_addr, _size, false /* executable */);
   140   bool success = os::commit_memory(_addr, _size, false /* executable */);