[9] RFR of 8132652: Java_sun_nio_ch_Net_poll passes a long to an int

Alan Bateman 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.

-Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/nio-dev/attachments/20150801/1eae1bdc/attachment.html>


More information about the nio-dev mailing list