aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/align_runtime_test.go
diff options
context:
space:
mode:
authorMichael Pratt <mpratt@google.com>2025-10-30 16:33:30 -0400
committerGopher Robot <gobot@golang.org>2025-11-12 08:26:55 -0800
commitd3aeba1670e80095fdd6e313a776163f4c68dc6a (patch)
tree704913a49171650bbf14c6b9afe1434e93112f7a /src/runtime/align_runtime_test.go
parent8873e8bea29ac6de5fecee88b8b81239bd2eb179 (diff)
downloadgo-d3aeba1670e80095fdd6e313a776163f4c68dc6a.tar.xz
runtime: switch p.gcFractionalMarkTime to atomic.Int64
atomic.Int64 automatically maintains proper alignment, avoiding the need to manually adjust alignment back and forth as fields above change. Change-Id: I6a6a636c4c3c366353f6dc8ecac473c075dd5cd9 Reviewed-on: https://go-review.googlesource.com/c/go/+/716700 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Michael Knyszek <mknyszek@google.com> Auto-Submit: Michael Pratt <mpratt@google.com>
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 4bcb49db2f..8b21934a75 100644
--- a/src/runtime/align_runtime_test.go
+++ b/src/runtime/align_runtime_test.go
@@ -14,7 +14,6 @@ import "unsafe"
// operations (all the *64 operations in internal/runtime/atomic).
var AtomicFields = []uintptr{
unsafe.Offsetof(m{}.procid),
- unsafe.Offsetof(p{}.gcFractionalMarkTime),
unsafe.Offsetof(profBuf{}.overflow),
unsafe.Offsetof(profBuf{}.overflowTime),
unsafe.Offsetof(heapStatsDelta{}.tinyAllocCount),