RFR: 8307425 - Socket input stream read burns CPU cycles with back-to-back poll(0) calls

Alan Bateman alanb at openjdk.org
Thu May 4 17:19:20 UTC 2023


On Thu, 4 May 2023 17:08:41 GMT, Daniel Jeliński <djelinski at openjdk.org> wrote:

> As far as I can tell, DatagramChannelImpl needs a similar fix

Yes indeed, although it would be DatagramSocket.receive where it would be noticed.

One general comment on this, at least for Socket, is that a timeout of small number of millis seems a bit odd. I wonder if there is something else that is using the timeout exception for control flow.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/13798#issuecomment-1535128510


More information about the nio-dev mailing list