]> Cypherpunks repositories - gostls13.git/commit
runtime/pprof: slow new goroutine launches in test
authorRhys Hiltner <rhys@justin.tv>
Mon, 16 May 2022 16:47:08 +0000 (09:47 -0700)
committerRhys Hiltner <rhys@justin.tv>
Mon, 16 May 2022 18:30:07 +0000 (18:30 +0000)
commit6ec46f470797ad816c3a5b20eece0995f13d2bc4
tree1911e03b184903e63b236276464d104661fa2697
parentab8d7dd75ea4918cde5e71b4482ff5b4f0f69273
runtime/pprof: slow new goroutine launches in test

The goroutine profiler tests include one that launches a steady stream
of goroutines. That creates a scheduler busy loop that can prevent
forward progress in the rest of the program. Slow down the launches a
bit so other goroutines have a chance to run.

Fixes #52916
For #52934

Change-Id: I748557201b94918b1fa4960544a51a48d9cacc6b
Reviewed-on: https://go-review.googlesource.com/c/go/+/406654
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/runtime/pprof/pprof_test.go