]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.23] runtime: don't frob isSending for tickers
authorIan Lance Taylor <iant@golang.org>
Mon, 14 Oct 2024 18:46:17 +0000 (11:46 -0700)
committerGopher Robot <gobot@golang.org>
Wed, 23 Oct 2024 22:07:00 +0000 (22:07 +0000)
commit8d79bf799b46875b52bef6a47f89b73ead824160
treee03ca6331b7da8b1184dcdf95c49d8766c9af147
parent35c010ad6db5113f51e1867ab3d0108754a3264c
[release-branch.go1.23] runtime: don't frob isSending for tickers

The Ticker Stop and Reset methods don't report a value,
so we don't need to track whether they are interrupting a send.

This includes a test that used to fail about 2% of the time on
my laptop when run under x/tools/cmd/stress.

For #69880
Fixes #69882

Change-Id: Ic6d14b344594149dd3c24b37bbe4e42e83f9a9ad
Reviewed-on: https://go-review.googlesource.com/c/go/+/620136
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Michael Knyszek <mknyszek@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
(cherry picked from commit 48849e0866f64a40d04a9151e44e5a73acdfc17b)
Reviewed-on: https://go-review.googlesource.com/c/go/+/620137
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/runtime/time.go
src/time/sleep_test.go