src/share/vm/runtime/arguments.cpp

changeset 9358
6a4a6c499e89
parent 9348
cb9634ab2906
child 9448
73d689add964
child 9634
d1520f0c3524
equal deleted inserted replaced
9357:0ef29304c2b4 9358:6a4a6c499e89
1375 // modification. 1375 // modification.
1376 if (!FLAG_IS_DEFAULT(CMSParPromoteBlocksToClaim) || !FLAG_IS_DEFAULT(OldPLABWeight)) { 1376 if (!FLAG_IS_DEFAULT(CMSParPromoteBlocksToClaim) || !FLAG_IS_DEFAULT(OldPLABWeight)) {
1377 CFLS_LAB::modify_initialization(OldPLABSize, OldPLABWeight); 1377 CFLS_LAB::modify_initialization(OldPLABSize, OldPLABWeight);
1378 } 1378 }
1379 1379
1380 if (!ClassUnloading) {
1381 FLAG_SET_CMDLINE(bool, CMSClassUnloadingEnabled, false);
1382 FLAG_SET_CMDLINE(bool, ExplicitGCInvokesConcurrentAndUnloadsClasses, false);
1383 }
1384
1385 if (PrintGCDetails && Verbose) { 1380 if (PrintGCDetails && Verbose) {
1386 tty->print_cr("MarkStackSize: %uk MarkStackSizeMax: %uk", 1381 tty->print_cr("MarkStackSize: %uk MarkStackSizeMax: %uk",
1387 (unsigned int) (MarkStackSize / K), (uint) (MarkStackSizeMax / K)); 1382 (unsigned int) (MarkStackSize / K), (uint) (MarkStackSizeMax / K));
1388 tty->print_cr("ConcGCThreads: %u", (uint) ConcGCThreads); 1383 tty->print_cr("ConcGCThreads: %u", (uint) ConcGCThreads);
1389 } 1384 }
1745 } 1740 }
1746 } 1741 }
1747 if (MinHeapFreeRatio == 100) { 1742 if (MinHeapFreeRatio == 100) {
1748 // Keeping the heap 100% free is hard ;-) so limit it to 99%. 1743 // Keeping the heap 100% free is hard ;-) so limit it to 99%.
1749 FLAG_SET_ERGO(uintx, MinHeapFreeRatio, 99); 1744 FLAG_SET_ERGO(uintx, MinHeapFreeRatio, 99);
1745 }
1746
1747 // If class unloading is disabled, also disable concurrent class unloading.
1748 if (!ClassUnloading) {
1749 FLAG_SET_CMDLINE(bool, CMSClassUnloadingEnabled, false);
1750 FLAG_SET_CMDLINE(bool, ClassUnloadingWithConcurrentMark, false);
1751 FLAG_SET_CMDLINE(bool, ExplicitGCInvokesConcurrentAndUnloadsClasses, false);
1750 } 1752 }
1751 #else // INCLUDE_ALL_GCS 1753 #else // INCLUDE_ALL_GCS
1752 assert(verify_serial_gc_flags(), "SerialGC unset"); 1754 assert(verify_serial_gc_flags(), "SerialGC unset");
1753 #endif // INCLUDE_ALL_GCS 1755 #endif // INCLUDE_ALL_GCS
1754 } 1756 }

mercurial