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 } |