PING? [8u] RFR: 8135318: CMS wrong max_eden_size for check_gc_overhead_limit

Aleksey Shipilev shade at
Wed Aug 7 15:47:41 UTC 2019

On 8/7/19 4:36 PM, Severin Gehwolf wrote:
> On Tue, 2019-07-09 at 14:37 +0200, Severin Gehwolf wrote:
>> Bug:
>> webrev:
>> JDK 9 change:

Backport looks good.

Looks like a simple fix without any bug tail. So the code in 8u would now compute eden size as
"max_young - 2*survivor", which makes sense: eden, plus from/to survivor spaces. Before it computed
it as "max_young - 3*survivor", which is erroneous. (It is weird DefNewGeneration::max_capacity()
discounts survivor space size, leading to this problem...) Right?


More information about the hotspot-gc-dev mailing list