mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8060697: Improve G1 Heap Growth Heuristics
Reworked GCTimeRatio-based heap growth code for G1 Reviewed-by: tschatzl, kbarrett, jmasa
This commit is contained in:
parent
ae7369442a
commit
33ac74ad7e
3 changed files with 128 additions and 25 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue