hotspot/src/os/windows/vm/os_windows.cpp
changeset 28014 3ca57ef4f132
parent 27880 afb974a04396
child 28023 a4075664328d
equal deleted inserted replaced
27882:ceece07bef14 28014:3ca57ef4f132
  3085 }
  3085 }
  3086 
  3086 
  3087 char* os::pd_reserve_memory(size_t bytes, char* addr, size_t alignment_hint) {
  3087 char* os::pd_reserve_memory(size_t bytes, char* addr, size_t alignment_hint) {
  3088   assert((size_t)addr % os::vm_allocation_granularity() == 0,
  3088   assert((size_t)addr % os::vm_allocation_granularity() == 0,
  3089          "reserve alignment");
  3089          "reserve alignment");
  3090   assert(bytes % os::vm_allocation_granularity() == 0, "reserve block size");
  3090   assert(bytes % os::vm_page_size() == 0, "reserve page size");
  3091   char* res;
  3091   char* res;
  3092   // note that if UseLargePages is on, all the areas that require interleaving
  3092   // note that if UseLargePages is on, all the areas that require interleaving
  3093   // will go thru reserve_memory_special rather than thru here.
  3093   // will go thru reserve_memory_special rather than thru here.
  3094   bool use_individual = (UseNUMAInterleaving && !UseLargePages);
  3094   bool use_individual = (UseNUMAInterleaving && !UseLargePages);
  3095   if (!use_individual) {
  3095   if (!use_individual) {