< prev index next >
src/hotspot/os/linux/os_linux.cpp
Print this page
rev 58103 : Disable adaptive sizing when ForceNuma is used with parallel gc and UseLargePages
@@ -5153,10 +5153,14 @@
}
}
}
}
+ 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
// UseNUMA and UseLargePages (or UseSHM/UseHugeTLBFS) on the command line - warn
// and disable adaptive resizing.
@@ -5165,14 +5169,10 @@
"disabling adaptive resizing (-XX:-UseAdaptiveSizePolicy -XX:-UseAdaptiveNUMAChunkSizing)");
UseAdaptiveSizePolicy = false;
UseAdaptiveNUMAChunkSizing = false;
}
}
-
- if (!UseNUMA && ForceNUMA) {
- UseNUMA = true;
- }
}
// this is called _after_ the global arguments have been parsed
jint os::init_2(void) {
< prev index next >