]> Cypherpunks repositories - gostls13.git/commit
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>
Mon, 14 Oct 2024 19:04:43 +0000 (19:04 +0000)
commit48849e0866f64a40d04a9151e44e5a73acdfc17b
treeaac98fbc5b93f7a78d2329903a7be7cf6251ebdb
parent1f51b8275826f5793310e4e9032f3d08facc1e27
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.

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>
src/runtime/time.go
src/time/sleep_test.go