On Thu, 26 Mar 2026 09:09:11 GMT, Francesco Nigro <[email protected]> wrote:

> Ported from 7ac9ca128885c5dd561e6fbd6bbeaddb86d6264c to the latest upstream 
> fibers branch. Adapted to the current API which renamed 
> implRegister/implDeregister to implStartPoll/implStopPoll and added 
> Mode/EventFD/Cleaner/PollerGroup architecture.

src/java.base/share/classes/sun/nio/ch/Poller.java line 223:

> 221:         Thread t;
> 222:         if (retainRegistration()) {
> 223:             t = map.replace(fdVal, REGISTERED);

This can be optimized

src/java.base/share/classes/sun/nio/ch/Poller.java line 463:

> 461:             }
> 462:             for (Poller p : writePollers()) {
> 463:                 p.clearRegistration(fdVal);

Useless as we don't use it for write pollers

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

PR Review Comment: https://git.openjdk.org/loom/pull/223#discussion_r2993484239
PR Review Comment: https://git.openjdk.org/loom/pull/223#discussion_r2993491340

Reply via email to