8065788: os::reserve_memory() on Windows should not assert that allocation size is aligned to OS allocation granularity

Reviewed-by: mgronlun, simonis
This commit is contained in:
Thomas Stuefe 2014-12-03 17:12:25 +01:00 committed by Markus Grönlund
parent 4169c68769
commit 7a2bd82482

View File

@ -3087,7 +3087,7 @@ char* os::reserve_memory_aligned(size_t size, size_t alignment) {
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.