]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: convert schedt.gcwaiting to atomic type
authorMichael Pratt <mpratt@google.com>
Mon, 25 Jul 2022 19:31:03 +0000 (15:31 -0400)
committerMichael Pratt <mpratt@google.com>
Fri, 12 Aug 2022 01:52:29 +0000 (01:52 +0000)
commit88ef50e6623e55875d783e5715be1dc0683717e0
treed18a83f6b47b7f172ba4eb866a6e0129394df2b7
parent1eeef5d5b4d5fafa96fb0d4aab033fc0c3947e51
runtime: convert schedt.gcwaiting to atomic type

Note that this replaces numerous unsynchronized loads throughout the
scheduler.

For #53821.

Change-Id: Ica80b04c9e8c184bfef186e549526fc3f117c387
Reviewed-on: https://go-review.googlesource.com/c/go/+/419447
Run-TryBot: Michael Pratt <mpratt@google.com>
Reviewed-by: Austin Clements <austin@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/runtime/mgcmark.go
src/runtime/proc.go
src/runtime/runtime2.go