8216975: Using ForceNUMA does not disable adaptive sizing with parallel gc

Reviewed-by: kbarrett, tschatzl, lkorinth
This commit is contained in:
Ivan Walulya 2020-02-21 10:56:30 +01:00
parent 5275d6e2d9
commit 976473690b
2 changed files with 7 additions and 12 deletions

View file

@ -5127,8 +5127,9 @@ void os::Linux::numa_init() {
} else {
if ((Linux::numa_max_node() < 1) || Linux::is_bound_to_single_node()) {
// If there's only one node (they start from 0) or if the process
// is bound explicitly to a single node using membind, disable NUMA.
UseNUMA = false;
// is bound explicitly to a single node using membind, disable NUMA unless
// user explicilty forces NUMA optimizations on single-node/UMA systems
UseNUMA = ForceNUMA;
} else {
LogTarget(Info,os) log;
@ -5167,10 +5168,6 @@ void os::Linux::numa_init() {
UseAdaptiveNUMAChunkSizing = false;
}
}
if (!UseNUMA && ForceNUMA) {
UseNUMA = true;
}
}
// this is called _after_ the global arguments have been parsed