changeset 7414:49499180315f

8087200: Code heap does not use large pages Reviewed-by: stefank, tschatzl, thartmann
author ehelin
date Wed, 17 Jun 2015 09:38:56 +0200
parents 7694563dff06
children 9d514a2d02ff
files src/share/vm/memory/heap.cpp
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/memory/heap.cpp	Thu Jun 11 22:52:18 2015 -0700
+++ b/src/share/vm/memory/heap.cpp	Wed Jun 17 09:38:56 2015 +0200
@@ -99,9 +99,7 @@
   // Reserve and initialize space for _memory.
   size_t page_size = os::vm_page_size();
   if (os::can_execute_large_page_memory()) {
-    const size_t min_pages = 8;
-    page_size = MIN2(os::page_size_for_region_aligned(committed_size, min_pages),
-                     os::page_size_for_region_aligned(reserved_size, min_pages));
+    page_size = os::page_size_for_region_unaligned(reserved_size, 8);
   }
 
   const size_t granularity = os::vm_allocation_granularity();