< prev index next >

src/hotspot/share/gc/parallel/mutableSpace.cpp

Print this page
*** 118,15 ***
        numa_setup_pages(head, page_size, clear_space);
        numa_setup_pages(tail, page_size, clear_space);
      }
  
      if (AlwaysPreTouch) {
        PretouchTask::pretouch("ParallelGC PreTouch head", (char*)head.start(), (char*)head.end(),
!                              page_size, pretouch_workers);
  
        PretouchTask::pretouch("ParallelGC PreTouch tail", (char*)tail.start(), (char*)tail.end(),
!                              page_size, pretouch_workers);
      }
  
      // Remember where we stopped so that we can continue later.
      set_last_setup_region(MemRegion(head.start(), tail.end()));
    }
--- 118,16 ---
        numa_setup_pages(head, page_size, clear_space);
        numa_setup_pages(tail, page_size, clear_space);
      }
  
      if (AlwaysPreTouch) {
+       size_t pretouch_page_size = UseLargePages ? page_size : os::vm_page_size();
        PretouchTask::pretouch("ParallelGC PreTouch head", (char*)head.start(), (char*)head.end(),
!                              pretouch_page_size, pretouch_workers);
  
        PretouchTask::pretouch("ParallelGC PreTouch tail", (char*)tail.start(), (char*)tail.end(),
!                              pretouch_page_size, pretouch_workers);
      }
  
      // Remember where we stopped so that we can continue later.
      set_last_setup_region(MemRegion(head.start(), tail.end()));
    }
< prev index next >