]> Cypherpunks repositories - gostls13.git/commit
runtime: refactor findrunnable spinning recheck
authorMichael Pratt <mpratt@google.com>
Wed, 7 Apr 2021 13:58:18 +0000 (09:58 -0400)
committerMichael Pratt <mpratt@google.com>
Tue, 20 Apr 2021 20:58:52 +0000 (20:58 +0000)
commitdbade774c379393f76105242e69cdcf2ad32e5c3
tree88a28561c2b2795e9c8c388e42ac0a18f86a50b1
parent7473a6a0ebb270c24c20994d3ea6e3fd96def223
runtime: refactor findrunnable spinning recheck

Break the main components of the findrunnable spinning -> non-spinning
recheck out into their own functions, which simplifies both findrunnable
and the new functions, which can make use of fancy features like early
returns.

This CL should have no functional changes.

For #43997
For #44313

Change-Id: I6d3060fcecda9920a3471ff338f73d53b1d848a3
Reviewed-on: https://go-review.googlesource.com/c/go/+/307914
Trust: Michael Pratt <mpratt@google.com>
Run-TryBot: Michael Pratt <mpratt@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/runtime/proc.go