Mercurial > hg > graal-jvmci-8
comparison src/share/vm/memory/allocation.inline.hpp @ 10221:c18152e0554e
8013120: NMT: Kitchensink crashes with assert(next_region == NULL || !next_region->is_committed_region()) failed: Sanity check
Summary: Fixed NMT to deal with releasing virtual memory region when there are still committed regions within it
Reviewed-by: acorn, coleenp
author | zgu |
---|---|
date | Mon, 06 May 2013 11:15:13 -0400 |
parents | 746b070f5022 |
children | f9be75d21404 |
comparison
equal
deleted
inserted
replaced
10219:9c8e2f44228d | 10221:c18152e0554e |
---|---|
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 */); |