[jdk20u] Integrated: 8307425: Socket input stream read burns CPU cycles with back-to-back poll(0) calls

Daniel Fuchs dfuchs at openjdk.org
Fri May 19 13:23:57 UTC 2023


On Wed, 17 May 2023 18:17:03 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:

> Backport the fix for [JDK-8307425](https://bugs.openjdk.org/browse/JDK-8307425) from openjdk/jdk to jdk20u.
> This is a clean backport.
> 
> It fixes places in NIO where nanoseconds are rounded down to milliseconds, leading to expensive tight poll/read loops in some scenarios - where for instance a 1ms timeout was supplied.

This pull request has now been integrated.

Changeset: 23024545
Author:    Daniel Fuchs <dfuchs at openjdk.org>
URL:       https://git.openjdk.org/jdk20u/commit/230245458c364128eab4ce0fa5b1910a9d3c0df8
Stats:     22 lines in 3 files changed: 20 ins; 0 del; 2 mod

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

Backport-of: 73ac710533a45bf5ba17f308aa49556b877b8bf9

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

PR: https://git.openjdk.org/jdk20u/pull/80


More information about the jdk-updates-dev mailing list