8060697: Improve G1 Heap Growth Heuristics

Reworked GCTimeRatio-based heap growth code for G1

Reviewed-by: tschatzl, kbarrett, jmasa
This commit is contained in:
Tom Benson 2015-12-09 09:51:31 -05:00 committed by Thomas Benson
parent ae7369442a
commit 33ac74ad7e
3 changed files with 128 additions and 25 deletions

View file

@ -1949,12 +1949,9 @@ void Arguments::set_g1_gc_flags() {
if (FLAG_IS_DEFAULT(GCTimeRatio) || GCTimeRatio == 0) {
// In G1, we want the default GC overhead goal to be higher than
// say in PS. So we set it here to 10%. Otherwise the heap might
// be expanded more aggressively than we would like it to. In
// fact, even 10% seems to not be high enough in some cases
// (especially small GC stress tests that the main thing they do
// is allocation). We might consider increase it further.
FLAG_SET_DEFAULT(GCTimeRatio, 9);
// it is for PS, or the heap might be expanded too aggressively.
// We set it here to ~8%.
FLAG_SET_DEFAULT(GCTimeRatio, 12);
}
if (PrintGCDetails && Verbose) {