1407 }
1408 }
1409
1410 if (UseParallelOldGC) {
1411 // Par compact uses lower default values since they are treated as
1412 // minimums. These are different defaults because of the different
1413 // interpretation and are not ergonomically set.
1414 if (FLAG_IS_DEFAULT(MarkSweepDeadRatio)) {
1415 FLAG_SET_DEFAULT(MarkSweepDeadRatio, 1);
1416 }
1417 if (FLAG_IS_DEFAULT(PermMarkSweepDeadRatio)) {
1418 FLAG_SET_DEFAULT(PermMarkSweepDeadRatio, 5);
1419 }
1420 }
1421 }
1422 if (UseNUMA) {
1423 if (FLAG_IS_DEFAULT(MinHeapDeltaBytes)) {
1424 FLAG_SET_DEFAULT(MinHeapDeltaBytes, 64*M);
1425 }
1426 }
1427 }
1428
1429 void Arguments::set_g1_gc_flags() {
1430 assert(UseG1GC, "Error");
1431 #ifdef COMPILER1
1432 FastTLABRefill = false;
1433 #endif
1434 FLAG_SET_DEFAULT(ParallelGCThreads,
1435 Abstract_VM_Version::parallel_worker_threads());
1436 if (ParallelGCThreads == 0) {
1437 FLAG_SET_DEFAULT(ParallelGCThreads,
1438 Abstract_VM_Version::parallel_worker_threads());
1439 }
1440 no_shared_spaces();
1441
1442 if (FLAG_IS_DEFAULT(MarkStackSize)) {
1443 FLAG_SET_DEFAULT(MarkStackSize, 128 * TASKQUEUE_SIZE);
1444 }
1445 if (PrintGCDetails && Verbose) {
1446 tty->print_cr("MarkStackSize: %uk MarkStackSizeMax: %uk",
|
1407 }
1408 }
1409
1410 if (UseParallelOldGC) {
1411 // Par compact uses lower default values since they are treated as
1412 // minimums. These are different defaults because of the different
1413 // interpretation and are not ergonomically set.
1414 if (FLAG_IS_DEFAULT(MarkSweepDeadRatio)) {
1415 FLAG_SET_DEFAULT(MarkSweepDeadRatio, 1);
1416 }
1417 if (FLAG_IS_DEFAULT(PermMarkSweepDeadRatio)) {
1418 FLAG_SET_DEFAULT(PermMarkSweepDeadRatio, 5);
1419 }
1420 }
1421 }
1422 if (UseNUMA) {
1423 if (FLAG_IS_DEFAULT(MinHeapDeltaBytes)) {
1424 FLAG_SET_DEFAULT(MinHeapDeltaBytes, 64*M);
1425 }
1426 }
1427 if (UseNUMA) {
1428 // For those collectors or operating systems (eg, Windows) that do
1429 // not support full UseNUMA, we will map to UseNUMAInterleaving
1430 UseNUMAInterleaving = true;
1431 }
1432
1433
1434 }
1435
1436 void Arguments::set_g1_gc_flags() {
1437 assert(UseG1GC, "Error");
1438 #ifdef COMPILER1
1439 FastTLABRefill = false;
1440 #endif
1441 FLAG_SET_DEFAULT(ParallelGCThreads,
1442 Abstract_VM_Version::parallel_worker_threads());
1443 if (ParallelGCThreads == 0) {
1444 FLAG_SET_DEFAULT(ParallelGCThreads,
1445 Abstract_VM_Version::parallel_worker_threads());
1446 }
1447 no_shared_spaces();
1448
1449 if (FLAG_IS_DEFAULT(MarkStackSize)) {
1450 FLAG_SET_DEFAULT(MarkStackSize, 128 * TASKQUEUE_SIZE);
1451 }
1452 if (PrintGCDetails && Verbose) {
1453 tty->print_cr("MarkStackSize: %uk MarkStackSizeMax: %uk",
|