< prev index next >

src/hotspot/share/gc/shared/gcArguments.cpp

Print this page

        

*** 29,46 **** #include "runtime/globals.hpp" #include "runtime/globals_extension.hpp" #include "utilities/macros.hpp" void GCArguments::initialize() { ! #if INCLUDE_ALL_GCS if (MinHeapFreeRatio == 100) { // Keeping the heap 100% free is hard ;-) so limit it to 99%. FLAG_SET_ERGO(uintx, MinHeapFreeRatio, 99); } - // If class unloading is disabled, also disable concurrent class unloading. if (!ClassUnloading) { ! FLAG_SET_CMDLINE(bool, CMSClassUnloadingEnabled, false); FLAG_SET_CMDLINE(bool, ClassUnloadingWithConcurrentMark, false); } - #endif // INCLUDE_ALL_GCS } --- 29,56 ---- #include "runtime/globals.hpp" #include "runtime/globals_extension.hpp" #include "utilities/macros.hpp" void GCArguments::initialize() { ! if (FullGCALot && FLAG_IS_DEFAULT(MarkSweepAlwaysCompactCount)) { ! MarkSweepAlwaysCompactCount = 1; // Move objects every gc. ! } ! ! if (!(UseParallelGC || UseParallelOldGC) && FLAG_IS_DEFAULT(ScavengeBeforeFullGC)) { ! FLAG_SET_DEFAULT(ScavengeBeforeFullGC, false); ! } ! ! if (GCTimeLimit == 100) { ! // Turn off gc-overhead-limit-exceeded checks ! FLAG_SET_DEFAULT(UseGCOverheadLimit, false); ! } ! if (MinHeapFreeRatio == 100) { // Keeping the heap 100% free is hard ;-) so limit it to 99%. FLAG_SET_ERGO(uintx, MinHeapFreeRatio, 99); } if (!ClassUnloading) { ! // If class unloading is disabled, also disable concurrent class unloading. FLAG_SET_CMDLINE(bool, ClassUnloadingWithConcurrentMark, false); } }
< prev index next >