[go] internal/poll: move isBlocking checks to inside execIO

0 views
Skip to first unread message

Quim Muntal (Gerrit)

unread,
Feb 6, 2026, 3:29:58 PM (2 days ago) Feb 6
to goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Michael Pratt, Damien Neil, Go LUCI, golang-co...@googlegroups.com

Quim Muntal submitted the change

Change information

Commit message:
internal/poll: move isBlocking checks to inside execIO

This is a step towards deferring adding the handle to IOCP until the
first IO operation.

Having all isBlocking checks inside execIO will make it easier to delay
getting that information until the first IO operation.

It also makes the code simpler, as Pread and Pwrite now only modify
the overlapped object offset, not the one in the FD struct, so they
don't need to reverse the offset change after the IO operation.

For #76391
Cq-Include-Trybots: luci.golang.try:gotip-windows-amd64-longtest,gotip-windows-amd64-race
Change-Id: Iea680c502c9417b9569a0b1a9da6f7e6bf916f6a
Reviewed-by: Damien Neil <dn...@google.com>
Reviewed-by: Michael Pratt <mpr...@google.com>
Files:
  • M src/internal/poll/fd_windows.go
Change size: M
Delta: 1 file changed, 31 insertions(+), 36 deletions(-)
Branch: refs/heads/master
Submit Requirements:
  • requirement satisfiedCode-Review: +2 by Damien Neil, +1 by Michael Pratt
  • requirement satisfiedTryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: go
Gerrit-Branch: master
Gerrit-Change-Id: Iea680c502c9417b9569a0b1a9da6f7e6bf916f6a
Gerrit-Change-Number: 742283
Gerrit-PatchSet: 2
Gerrit-Owner: Quim Muntal <quimm...@gmail.com>
Gerrit-Reviewer: Damien Neil <dn...@google.com>
Gerrit-Reviewer: Michael Pratt <mpr...@google.com>
Gerrit-Reviewer: Quim Muntal <quimm...@gmail.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages