From: Cuong Manh Le Date: Thu, 25 Aug 2022 04:25:32 +0000 (+0700) Subject: runtime: remove gcCPULimiterState padding for atomic fields alignment X-Git-Tag: go1.20rc1~1389 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=a52f4952cbc03538cacea78a663ac5bf61af165e;p=gostls13.git runtime: remove gcCPULimiterState padding for atomic fields alignment assistTimePool and lastUpdate are now atomic.Int64, so they are guaranteed to have 64-bit alignment, even on 32-bit platforms. Change-Id: Ib6062a47c3a92d46d43899e1ae9d119e7f5b8bb0 Reviewed-on: https://go-review.googlesource.com/c/go/+/425460 Run-TryBot: Cuong Manh Le Auto-Submit: Cuong Manh Le Reviewed-by: Michael Pratt TryBot-Result: Gopher Robot Reviewed-by: David Chase --- diff --git a/src/runtime/mgclimit.go b/src/runtime/mgclimit.go index 485a59bdf7..b6fbcb14cf 100644 --- a/src/runtime/mgclimit.go +++ b/src/runtime/mgclimit.go @@ -55,8 +55,6 @@ type gcCPULimiterState struct { // the mark and sweep phases. transitioning bool - _ uint32 // Align assistTimePool and lastUpdate on 32-bit platforms. - // assistTimePool is the accumulated assist time since the last update. assistTimePool atomic.Int64