Mercurial > hg > graal-jvmci-8
comparison src/share/vm/runtime/arguments.cpp @ 1356:56507bcd639e
6937160: G1: should observe GCTimeRatio
Summary: Remove the G1GCPercent parameter, that specifies the desired GC overhead percentage in G1, and observe the GCTimeRatio parameter instead.
Reviewed-by: jmasa, johnc
author | tonyp |
---|---|
date | Tue, 30 Mar 2010 15:36:55 -0400 |
parents | cc98cc548f51 |
children | 9e5e83ca2259 2338d41fbd81 |
comparison
equal
deleted
inserted
replaced
1332:4b60f23c4223 | 1356:56507bcd639e |
---|---|
1350 } | 1350 } |
1351 if (PrintGCDetails && Verbose) { | 1351 if (PrintGCDetails && Verbose) { |
1352 tty->print_cr("MarkStackSize: %uk MarkStackSizeMax: %uk", | 1352 tty->print_cr("MarkStackSize: %uk MarkStackSizeMax: %uk", |
1353 MarkStackSize / K, MarkStackSizeMax / K); | 1353 MarkStackSize / K, MarkStackSizeMax / K); |
1354 tty->print_cr("ConcGCThreads: %u", ConcGCThreads); | 1354 tty->print_cr("ConcGCThreads: %u", ConcGCThreads); |
1355 } | |
1356 | |
1357 if (FLAG_IS_DEFAULT(GCTimeRatio) || GCTimeRatio == 0) { | |
1358 // In G1, we want the default GC overhead goal to be higher than | |
1359 // say in PS. So we set it here to 10%. Otherwise the heap might | |
1360 // be expanded more aggressively than we would like it to. In | |
1361 // fact, even 10% seems to not be high enough in some cases | |
1362 // (especially small GC stress tests that the main thing they do | |
1363 // is allocation). We might consider increase it further. | |
1364 FLAG_SET_DEFAULT(GCTimeRatio, 9); | |
1355 } | 1365 } |
1356 } | 1366 } |
1357 | 1367 |
1358 void Arguments::set_heap_size() { | 1368 void Arguments::set_heap_size() { |
1359 if (!FLAG_IS_DEFAULT(DefaultMaxRAMFraction)) { | 1369 if (!FLAG_IS_DEFAULT(DefaultMaxRAMFraction)) { |