PUBLIC COMMENTS
Due to time pressure to get the fix in, I'm making the scope of this CR a bit narrower. We'll still enable/disable the ergonomic youn gen sizing with +/-UseAdaptiveSizePolicy, set the young gen size with NewSize or NewRatio, and pick up the same default young gen size as the other GCs, if ergonomics are turned off. However, if ergonomics are turned on we'll ignore NewSize / MaxNewSize and the ergonomic code can resize the young generation as it wishes (i.e., G1 will operate as it operated before, only the parameter names change).
Obeying NewSize / MaxNewSize when ergonomics are enabled will be done as a separate CR (6929868).
|