diff options
| author | Russ Cox <rsc@golang.org> | 2024-02-14 11:57:05 -0500 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2024-02-29 18:51:47 +0000 |
| commit | adc575e64c8a49c0a14a8a6b0480c5f9815bdb1a (patch) | |
| tree | ffcfd0f85057c6844631632d9e3c6323581aa838 /src/net | |
| parent | 8570aaaf1a1f6cf18c146d7f66016b491847f7f7 (diff) | |
| download | go-adc575e64c8a49c0a14a8a6b0480c5f9815bdb1a.tar.xz | |
runtime: move per-P timers state into its own struct
Continuing conversion from C to Go, introduce type timers
encapsulating all timer heap state, with methods for operations.
This should at least be easier to think about, instead of having
these fields strewn through the P struct. It should also be easier
to test.
I am skeptical about the pair of atomic int64 deadlines:
I think there are missed wakeups lurking.
Having the code in an abstracted API should make it easier
to reason through and fix if needed.
[This is one CL in a refactoring stack making very small changes
in each step, so that any subtle bugs that we miss can be more
easily pinpointed to a small change.]
Change-Id: If5ea3e0b946ca14076f44c85cbb4feb9eddb4f95
Reviewed-on: https://go-review.googlesource.com/c/go/+/564132
Reviewed-by: Austin Clements <austin@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/net')
0 files changed, 0 insertions, 0 deletions
