diff options
| author | Carlos Amedee <carlos@golang.org> | 2025-01-03 16:53:32 -0500 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-01-22 09:23:24 -0800 |
| commit | 5a46b17b5f62616bdbc973bbd6a221edc02a0619 (patch) | |
| tree | d338213d79755e30dd4c9475837bb169cc0a1b66 /src/runtime | |
| parent | 6fc23a3cff5e38ff72923fee50f51254dcdc6e93 (diff) | |
| download | go-5a46b17b5f62616bdbc973bbd6a221edc02a0619.tar.xz | |
os: force a goroutine to be scheduled on WASM
The TestRootConcurrentClose test can fail when GOARCH=WASM because of
goroutine starvation. The spawned goroutine will sometimes run in a
loop and never have the main goroutine be scheduled. This causes the
test to fail due to a timeout. This change forces the goroutine to be
scheduled with each iteration of the loop when GOARCH=WASM.
For #71134
Fixes #71117
Change-Id: I4fb68907c9ac3b33bd0572d5e5db2974a3379191
Reviewed-on: https://go-review.googlesource.com/c/go/+/640195
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Carlos Amedee <carlos@golang.org>
Diffstat (limited to 'src/runtime')
0 files changed, 0 insertions, 0 deletions
