]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: convert gcController.dedicatedMarkWorkersNeeded to atomic type
authorMichael Pratt <mpratt@google.com>
Thu, 14 Jul 2022 21:15:44 +0000 (17:15 -0400)
committerMichael Pratt <mpratt@google.com>
Mon, 8 Aug 2022 14:12:21 +0000 (14:12 +0000)
commite76155614af824f9e8be88292884799c8d4b1f3d
tree6c732a533e6685a8e35ff134a461b7e261c4ccce
parentdcd10375bc48d0389919b573485d2730445650fd
runtime: convert gcController.dedicatedMarkWorkersNeeded to atomic type

In gcController.startCycle we just compute the initial value in a
local variable before assigning to the atomic field to avoid noisy
churn.

For #53821.

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