RFR of 8132652: Java_sun_nio_ch_Net_poll passes a long to an int
Alan.Bateman at oracle.com
Sat Aug 1 13:14:22 UTC 2015
On 31/07/2015 02:19, Brian Burkhalter wrote:
> Summary: While the jlong value passed as the parameter ‘timeout’
> appears in all cases to be a widened jint and therefore that there is
> really no problem at present, clamping the jlong to the range of int
> might avert unforeseen future problems should the calling logic change.
This looks okay. A slight variant would be to set timeout to -1 then any
negative value means an infinite timeout to the poll syscall.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nio-dev