--- old/src/hotspot/share/memory/universe.cpp 2018-09-19 15:53:59.144512300 -0700 +++ new/src/hotspot/share/memory/universe.cpp 2018-09-19 15:53:58.476689000 -0700 @@ -812,6 +812,10 @@ || UseParallelGC || use_large_pages, "Wrong alignment to use large pages"); + // When AllocateOldGenAt is set, we cannot use largepages for entire heap memory. + // Only young gen which is allocated in dram can use large pages, but we currently don't support that. + use_large_pages = (AllocateOldGenAt != NULL) ? false : use_large_pages; + // Now create the space. ReservedHeapSpace total_rs(total_reserved, alignment, use_large_pages, AllocateHeapAt);