]> Cypherpunks repositories - gostls13.git/commit
internal/poll: remove fd field from Windows' poll.operation
authorqmuntal <quimmuntal@gmail.com>
Wed, 2 Jul 2025 09:05:47 +0000 (11:05 +0200)
committerGopher Robot <gobot@golang.org>
Thu, 24 Jul 2025 17:49:17 +0000 (10:49 -0700)
commitf7432e0230eef9f40117a901bc71e09db6432033
treef06e1aa4f088fc6c48bca1969cbb2206977331af
parente84ed3864191fad224ad377054199661c34dd665
internal/poll: remove fd field from Windows' poll.operation

There is no need to keep the fd in the poll.operation struct,
given that all usages of this field have direct access to the fd struct.

This skims down the size of os.File by 16 bytes.

Change-Id: I837e345250387f62e294cc1772d752865a04ef6d
Reviewed-on: https://go-review.googlesource.com/c/go/+/685415
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Michael Knyszek <mknyszek@google.com>
src/internal/poll/fd_windows.go
src/internal/poll/sendfile_windows.go