8190308: Implementation: JEP 316: Heap Allocation on Alternative Memory Devices

Sub-task to be used for implementation of JEP 316: Support heap allocation on alternative memory devices

Reviewed-by: sangheki, tschatzl
This commit is contained in:
Kishor Kharbas 2017-11-29 17:03:10 -08:00
parent 3faa620f4c
commit 3fc999a1fe
14 changed files with 503 additions and 54 deletions

View file

@ -2223,6 +2223,11 @@ bool Arguments::check_vm_args_consistency() {
LoopStripMiningIterShortLoop = LoopStripMiningIter / 10;
}
#endif
if (!FLAG_IS_DEFAULT(AllocateHeapAt)) {
if ((UseNUMAInterleaving && !FLAG_IS_DEFAULT(UseNUMAInterleaving)) || (UseNUMA && !FLAG_IS_DEFAULT(UseNUMA))) {
log_warning(arguments) ("NUMA support for Heap depends on the file system when AllocateHeapAt option is used.\n");
}
}
return status;
}
@ -4304,7 +4309,9 @@ jint Arguments::apply_ergo() {
jint Arguments::adjust_after_os() {
if (UseNUMA) {
if (UseParallelGC || UseParallelOldGC) {
if (!FLAG_IS_DEFAULT(AllocateHeapAt)) {
FLAG_SET_ERGO(bool, UseNUMA, false);
} else if (UseParallelGC || UseParallelOldGC) {
if (FLAG_IS_DEFAULT(MinHeapDeltaBytes)) {
FLAG_SET_DEFAULT(MinHeapDeltaBytes, 64*M);
}