aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/align_runtime_test.go
diff options
context:
space:
mode:
authorMichael Pratt <mpratt@google.com>2022-07-14 17:15:44 -0400
committerMichael Pratt <mpratt@google.com>2022-08-08 14:12:21 +0000
commite76155614af824f9e8be88292884799c8d4b1f3d (patch)
tree6c732a533e6685a8e35ff134a461b7e261c4ccce /src/runtime/align_runtime_test.go
parentdcd10375bc48d0389919b573485d2730445650fd (diff)
downloadgo-e76155614af824f9e8be88292884799c8d4b1f3d.tar.xz
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>
Diffstat (limited to 'src/runtime/align_runtime_test.go')
-rw-r--r--src/runtime/align_runtime_test.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/runtime/align_runtime_test.go b/src/runtime/align_runtime_test.go
index cec0d76be2..de5a5c639c 100644
--- a/src/runtime/align_runtime_test.go
+++ b/src/runtime/align_runtime_test.go
@@ -21,7 +21,6 @@ var AtomicFields = []uintptr{
unsafe.Offsetof(schedt{}.lastpoll),
unsafe.Offsetof(schedt{}.pollUntil),
unsafe.Offsetof(schedt{}.timeToRun),
- unsafe.Offsetof(gcControllerState{}.dedicatedMarkWorkersNeeded),
unsafe.Offsetof(timeHistogram{}.underflow),
unsafe.Offsetof(profBuf{}.overflow),
unsafe.Offsetof(profBuf{}.overflowTime),