diff options
author | Michael Anthony Knyszek <mknyszek@google.com> | 2022-04-21 22:18:31 +0000 |
---|---|---|
committer | Michael Knyszek <mknyszek@google.com> | 2022-04-26 22:08:12 +0000 |
commit | 226346bb763233ed9341bc1d829752628479845f (patch) | |
tree | 311e1ba799f61bfbf29f7612799d1132e0b2b559 /src/runtime/mgcpacer_test.go | |
parent | 79db59ded9dab276507f3a045e42b76eef5a35b4 (diff) | |
download | go-226346bb763233ed9341bc1d829752628479845f.tar.gz go-226346bb763233ed9341bc1d829752628479845f.zip |
runtime: yield instead of sleeping in runqgrab on OpenBSD
OpenBSD has a coarse sleep granularity that rounds up to 10 ms
increments. This can cause significant STW delays, among other issues.
As far as I can tell, there's only 1 tightly timed sleep without an
explicit wakeup for which this actually matters.
Fixes #52475.
Change-Id: Ic69fc11096ddbbafd79b2dcdf3f912fde242db24
Reviewed-on: https://go-review.googlesource.com/c/go/+/401638
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Run-TryBot: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'src/runtime/mgcpacer_test.go')
0 files changed, 0 insertions, 0 deletions