]> Cypherpunks repositories - gostls13.git/commit
runtime: merge timerNoStatus into timerRemoved
authorRuss Cox <rsc@golang.org>
Wed, 14 Feb 2024 16:56:59 +0000 (11:56 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 28 Feb 2024 16:43:58 +0000 (16:43 +0000)
commited0ad591d31daf911092487ceafb7b440d0ed8ea
tree3f6782062b75fc81c59688d8d10675e75be2da68
parent3be36e9b20041ed1e67a45ae2ade96c45e90031a
runtime: merge timerNoStatus into timerRemoved

For historical reasons, we have to treat a zero timer as
the same as an initialized timer that was stopped (removed).
The two states are already treated mostly identically.
Merge them.

This is part of a larger simplification of the state set.

[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: I9c3aeb8f92bafb18c47489c1ec20a7b87ac5cd9c
Reviewed-on: https://go-review.googlesource.com/c/go/+/564122
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/runtime/time.go