From accfa0f0ee06c036c8940acd0a2e4db73bd38a8f Mon Sep 17 00:00:00 2001 From: ehelin Date: Wed, 17 Jun 2015 09:38:56 +0200 Subject: [PATCH] 8087200: Code heap does not use large pages Reviewed-by: stefank, tschatzl, thartmann --- src/share/vm/memory/heap.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/share/vm/memory/heap.cpp b/src/share/vm/memory/heap.cpp index 3b5460038..a0fb60346 100644 --- a/src/share/vm/memory/heap.cpp +++ b/src/share/vm/memory/heap.cpp @@ -99,9 +99,7 @@ bool CodeHeap::reserve(size_t reserved_size, size_t committed_size, // 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(); -- GitLab