]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: drop padding alignment field for timeHistogram
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Fri, 26 Aug 2022 02:16:47 +0000 (09:16 +0700)
committerGopher Robot <gobot@golang.org>
Fri, 26 Aug 2022 18:01:35 +0000 (18:01 +0000)
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 <mpratt@google.com>
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/runtime/mstats.go
src/runtime/runtime2.go

index d2a956deaec3b635698d5ac5a00888d3cf91043d..70c5a703e7d0935904f47b3f4d994810fd016bd5 100644 (file)
@@ -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.
        //
index 88e93a315f3e32ae0cf32f05cbcca2ba517ffd32..e6c8180d6da8d4e60b76f06a0359884132fd890c 100644 (file)
@@ -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.