diff options
| author | Michael Pratt <mpratt@google.com> | 2025-10-30 16:33:30 -0400 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-11-12 08:26:55 -0800 |
| commit | d3aeba1670e80095fdd6e313a776163f4c68dc6a (patch) | |
| tree | 704913a49171650bbf14c6b9afe1434e93112f7a /src/runtime/runtime2.go | |
| parent | 8873e8bea29ac6de5fecee88b8b81239bd2eb179 (diff) | |
| download | go-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/runtime2.go')
| -rw-r--r-- | src/runtime/runtime2.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/runtime2.go b/src/runtime/runtime2.go index 2b79717703..85a9693ace 100644 --- a/src/runtime/runtime2.go +++ b/src/runtime/runtime2.go @@ -794,7 +794,7 @@ type p struct { // Per-P GC state gcAssistTime int64 // Nanoseconds in assistAlloc - gcFractionalMarkTime int64 // Nanoseconds in fractional mark worker (atomic) + gcFractionalMarkTime atomic.Int64 // Nanoseconds in fractional mark worker // limiterEvent tracks events for the GC CPU limiter. limiterEvent limiterEvent |
