--- old/src/hotspot/share/memory/universe.cpp 2018-11-21 22:49:57.546972600 -0800 +++ new/src/hotspot/share/memory/universe.cpp 2018-11-21 22:49:56.816727200 -0800 @@ -826,6 +826,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);