RFR: JDK-8151912: guarantee(GCPauseIntervalMillis >= 1) failed: Constraint for GCPauseIntervalMillis should guarantee that value is >= 1
bengt.rutisson at oracle.com
Wed Mar 16 14:20:18 UTC 2016
On 2016-03-16 15:21, Thomas Schatzl wrote:
> On Wed, 2016-03-16 at 15:07 +0100, Bengt Rutisson wrote:
>> Hi all,
>> Could I have a couple of reviews for this change?
>> The problem is that we do this during setup of G1CollectorPolicy:
>> FLAG_SET_DEFAULT(GCPauseIntervalMillis, MaxGCPauseMillis + 1);
>> If MaxGCPauseMillis is max uint we will overflow and
>> GCPauseIntervalMillis will be 0.
>> Before JDK-8151604 we did not notice this overflow.
>> The proposed change reduces the max value for MaxGCPauseMillis to
>> max_uint - 1. I think it can be argued that we should have a more
>> reasonable max value, but I don't have a good suggestion for what
>> value would be. So, for now, to fix the current failures in nightly
>> testing, I propose to just reduce it to the largest value that we can
>> actually handle.
> Looks good.
Since this is a pretty simple fix and a blocker for the nightly testing
I will be pushing this now without waiting 24h.
More information about the hotspot-gc-dev