< prev index next >

src/hotspot/share/runtime/arguments.cpp

Print this page
rev 52017 : All changes for G1 GC moved from 'combined' repo folder

*** 2066,2075 **** --- 2066,2088 ---- 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"); } } + + if(!FLAG_IS_DEFAULT(AllocateHeapAt) && !FLAG_IS_DEFAULT(AllocateOldGenAt)) { + jio_fprintf(defaultStream::error_stream(), + "AllocateHeapAt and AllocateOldGenAt cannot be used together.\n"); + status = false; + } + + if (!FLAG_IS_DEFAULT(AllocateOldGenAt) && (UseSerialGC || UseConcMarkSweepGC || UseEpsilonGC || UseZGC)) { + jio_fprintf(defaultStream::error_stream(), + "AllocateOldGenAt not supported for selected GC.\n"); + status = false; + } + return status; } bool Arguments::is_bad_option(const JavaVMOption* option, jboolean ignore, const char* option_type) {
< prev index next >