]> Cypherpunks repositories - gostls13.git/commit
runtime: prepare for extensions to waiting M list
authorRhys Hiltner <rhys.hiltner@gmail.com>
Mon, 13 May 2024 19:23:58 +0000 (12:23 -0700)
committerGopher Robot <gobot@golang.org>
Tue, 21 May 2024 17:17:24 +0000 (17:17 +0000)
commitbe0b569caa0eab1a7f30edf64e550bbf5f6ff235
tree5a64e37f8e0b3314666430823e3fa32d615e31fa
parentd68d485405d8e604921e6d63ed32ae344fd3049e
runtime: prepare for extensions to waiting M list

Move the nextwaitm field into a small struct, in preparation for
additional metadata to track how long Ms need to wait for locks.

For #66999

Change-Id: Ib40e43c15cde22f7e35922641107973d99439ecd
Reviewed-on: https://go-review.googlesource.com/c/go/+/585635
Reviewed-by: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Rhys Hiltner <rhys.hiltner@gmail.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/runtime/lock_sema.go
src/runtime/mprof.go
src/runtime/runtime2.go