]> Cypherpunks repositories - gostls13.git/commit
internal/poll: remove qty and flags fields from Windows' poll.operation
authorqmuntal <quimmuntal@gmail.com>
Wed, 2 Jul 2025 10:33:13 +0000 (12:33 +0200)
committerQuim Muntal <quimmuntal@gmail.com>
Mon, 28 Jul 2025 18:51:58 +0000 (11:51 -0700)
commit9b6bd64e46bd882fb8849d4476fc91a22b67cc96
treec68c47748f51d59819b9ae157ff1b94104e7975a
parentcd3655a8243b5f52b6a274a0aba5e01d998906c0
internal/poll: remove qty and flags fields from Windows' poll.operation

There is no need to keep the qty and flags fields in the poll.operation
struct.

This skims down the size of os.File by 16 bytes and makes poll.operation
harder to misuse.

Change-Id: I8943d88f29ed3c7eefbb83114b0d31052abbe646
Reviewed-on: https://go-review.googlesource.com/c/go/+/685436
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Mark Freeman <mark@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/internal/poll/fd_windows.go
src/internal/poll/sendfile_windows.go