--- old/src/hotspot/os/linux/os_linux.cpp 2020-02-19 10:18:09.000000000 +0100 +++ new/src/hotspot/os/linux/os_linux.cpp 2020-02-19 10:18:09.000000000 +0100 @@ -5155,6 +5155,10 @@ } } + if (!UseNUMA && ForceNUMA) { + UseNUMA = true; + } + if (UseParallelGC && UseNUMA && UseLargePages && !can_commit_large_page_memory()) { // With SHM and HugeTLBFS large pages we cannot uncommit a page, so there's no way // we can make the adaptive lgrp chunk resizing work. If the user specified both @@ -5167,10 +5171,6 @@ UseAdaptiveNUMAChunkSizing = false; } } - - if (!UseNUMA && ForceNUMA) { - UseNUMA = true; - } } // this is called _after_ the global arguments have been parsed