RFR (XS) : 8141641: Runtime: implement range for ErrorLogTimeout

Dmitry Dmitriev dmitry.dmitriev at oracle.com
Wed Nov 11 08:27:45 UTC 2015

Hello David,

I think that UINT_MAX upper range is not quite correct, because ErrorLogTimeout value is multiplied on 1000 and we can get overflow. Thus, more accurate is UINT_MAX / 1000. 
>From the other hand, os::sleep second argument have type 'jlong'. And very big ErrorLogTimeout values can become negative after converting to the 'jlong'. In this case I think that upper range should be something like that: 'max_jlong / 1000'


----- Original Message -----
From: david.holmes at oracle.com
To: gerard.ziemski at oracle.com, hotspot-dev at openjdk.java.net
Sent: Wednesday, November 11, 2015 5:44:17 AM GMT +03:00 Iraq
Subject: Re: RFR (XS) : 8141641: Runtime: implement range for ErrorLogTimeout

On 11/11/2015 5:34 AM, gerard ziemski wrote:
> hi all,
> Please review this small fix for JEP-245, which implements range for the
> last new runtime flag.
>      bug: https://bugs.openjdk.java.net/browse/JDK-8141641
>   webrev: http://cr.openjdk.java.net/~gziemski/8141641_rev0

This seems an artificial constraint. Why should I not be able to specify 
0 or UINT_MAX? A range check is for validity not sensibility, and all 
values are valid here.


> Thank you.

More information about the hotspot-dev mailing list