mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 11:04:34 +02:00
8013120: NMT: Kitchensink crashes with assert(next_region == NULL || !next_region->is_committed_region()) failed: Sanity check
Fixed NMT to deal with releasing virtual memory region when there are still committed regions within it Reviewed-by: acorn, coleenp
This commit is contained in:
parent
79f4c78a72
commit
c2330eb6b1
5 changed files with 85 additions and 6 deletions
|
@ -132,7 +132,7 @@ E* ArrayAllocator<E, F>::allocate(size_t length) {
|
|||
int alignment = os::vm_allocation_granularity();
|
||||
_size = align_size_up(_size, alignment);
|
||||
|
||||
_addr = os::reserve_memory(_size, NULL, alignment);
|
||||
_addr = os::reserve_memory(_size, NULL, alignment, F);
|
||||
if (_addr == NULL) {
|
||||
vm_exit_out_of_memory(_size, OOM_MMAP_ERROR, "Allocator (reserve)");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue