# HG changeset patch # User stuefe # Date 1417623145 -3600 # Node ID 0829606ed8ebc1c7921bad866eb3db81e5e814a5 # Parent b7b6b8b4377832e40b8c86a8ca6f7d7b756c270e 8065788 os::reserve_memory() on Windows should not assert that allocation size is aligned to OS allocation granularity Reviewed-by: mgronlun, simonis Contributed-by: stuefe diff --git a/src/os/windows/vm/os_windows.cpp b/src/os/windows/vm/os_windows.cpp --- a/src/os/windows/vm/os_windows.cpp +++ b/src/os/windows/vm/os_windows.cpp @@ -3087,7 +3087,7 @@ char* os::pd_reserve_memory(size_t bytes, char* addr, size_t alignment_hint) { assert((size_t)addr % os::vm_allocation_granularity() == 0, "reserve alignment"); - assert(bytes % os::vm_allocation_granularity() == 0, "reserve block size"); + assert(bytes % os::vm_page_size() == 0, "reserve page size"); char* res; // note that if UseLargePages is on, all the areas that require interleaving // will go thru reserve_memory_special rather than thru here.