]> Cypherpunks repositories - gostls13.git/commit
runtime: use timer.lock in modtimer
authorRuss Cox <rsc@golang.org>
Wed, 14 Feb 2024 16:57:01 +0000 (11:57 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 28 Feb 2024 16:44:07 +0000 (16:44 +0000)
commit2fb5ef889bf86dfb25880cf087a3e02f7100df29
tree32b72a86f14381b9a912913a3cef27bec2c839a1
parentb5a99eaa94aafb48944d877f9991b6ae943b056c
runtime: use timer.lock in modtimer

Continue using timer.lock to simplify timer operations.

Note the removal of a previous potential deadlock.
(Explained at new line 325, there was a lock inversion
between individual timer locks and the 'timers' lock.)

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