[jdk17u-dev] RFR: 8294399: (ch) Refactor some methods out of sun.nio.ch.UnixFileDispatcherImpl [v2]

Shruthi Acharya sacharya at openjdk.org
Wed Aug 6 11:18:12 UTC 2025


On Sun, 20 Jul 2025 05:23:41 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:

> Small question, why do we backport refactoring changes?

I’m backporting 8294399 because it introduces the UnixDispatcher class, which is a necessary foundation for other functional fixes, including the one in [openjdk/jdk#25817](https://github.com/openjdk/jdk/pull/25817). Although it’s a refactoring change, it helps separate platform-specific logic into a dedicated class, making the code cleaner and easier to maintain. More importantly, the fix that address real issues (async close handling and race conditions) are built on top of this refactoring. Without backporting 8294399, those fixes cannot be cleanly or safely applied to JDK 17.

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

PR Comment: https://git.openjdk.org/jdk17u-dev/pull/3631#issuecomment-3159731910


More information about the jdk-updates-dev mailing list