From bcd1ac7120e04cc60491005771aee5f27abac220 Mon Sep 17 00:00:00 2001 From: Cuong Manh Le Date: Fri, 26 Aug 2022 09:16:47 +0700 Subject: [PATCH] runtime: drop padding alignment field for timeHistogram After CL 419449, timeHistogram always have 8-byte alignment. Change-Id: I93145502bcafa1712b811b1a6d62da5d54d0db42 Reviewed-on: https://go-review.googlesource.com/c/go/+/425777 Reviewed-by: Michael Pratt Run-TryBot: Cuong Manh Le Auto-Submit: Cuong Manh Le TryBot-Result: Gopher Robot Reviewed-by: David Chase --- src/runtime/mstats.go | 2 -- src/runtime/runtime2.go | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/runtime/mstats.go b/src/runtime/mstats.go index d2a956deae..70c5a703e7 100644 --- a/src/runtime/mstats.go +++ b/src/runtime/mstats.go @@ -45,8 +45,6 @@ type mstats struct { enablegc bool - _ uint32 // ensure gcPauseDist is aligned. - // gcPauseDist represents the distribution of all GC-related // application pauses in the runtime. // diff --git a/src/runtime/runtime2.go b/src/runtime/runtime2.go index 88e93a315f..e6c8180d6d 100644 --- a/src/runtime/runtime2.go +++ b/src/runtime/runtime2.go @@ -836,8 +836,6 @@ type schedt struct { // with the rest of the runtime. sysmonlock mutex - _ uint32 // ensure timeToRun has 8-byte alignment - // timeToRun is a distribution of scheduling latencies, defined // as the sum of time a G spends in the _Grunnable state before // it transitions to _Grunning. -- 2.50.0