# HG changeset patch # User mgronlun # Date 1417623145 -3600 # Node ID 3ca57ef4f1328f65d05bbf8f1b5d58e15e76ef0f # Parent ceece07bef1440c5a20a6651787deab76171e60f 8065788: os::reserve_memory() on Windows should not assert that allocation size is aligned to OS allocation granularity Reviewed-by: mgronlun, simonis Contributed-by: thomas.stuefe@sap.com diff -r ceece07bef14 -r 3ca57ef4f132 hotspot/src/os/windows/vm/os_windows.cpp --- a/hotspot/src/os/windows/vm/os_windows.cpp Wed Dec 03 20:40:00 2014 +0000 +++ b/hotspot/src/os/windows/vm/os_windows.cpp Wed Dec 03 17:12:25 2014 +0100 @@ -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.