equal
deleted
inserted
replaced
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 */); |