hotspot/src/os/windows/vm/os_windows.cpp
changeset 28014 3ca57ef4f132
parent 27880 afb974a04396
child 28023 a4075664328d
--- 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.