From a52f4952cbc03538cacea78a663ac5bf61af165e Mon Sep 17 00:00:00 2001 From: Cuong Manh Le Date: Thu, 25 Aug 2022 11:25:32 +0700 Subject: [PATCH] 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 --- src/runtime/mgclimit.go | 2 -- 1 file changed, 2 deletions(-) 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 -- 2.50.0