]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: remove pageAlloc.scav padding for atomic field alignment
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Fri, 19 Aug 2022 11:35:42 +0000 (18:35 +0700)
committerGopher Robot <gobot@golang.org>
Fri, 19 Aug 2022 15:53:47 +0000 (15:53 +0000)
CL 404096 makes atomic.Int64 8 bytes aligned everywhere.

Change-Id: I5a676f646260d6391bb071f9376cbdb1553e6e6f
Reviewed-on: https://go-review.googlesource.com/c/go/+/424925
Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Joedian Reid <joedian@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/runtime/mpagealloc.go

index 5de25cfe00ac46ff83dd5ec4c68f3de09d51e766..bb30b4a40b74bf6ea5621a1407e6f2396b1f927d 100644 (file)
@@ -280,8 +280,6 @@ type pageAlloc struct {
                // Updated atomically.
                released uintptr
 
-               _ uint32 // Align assistTime for atomics on 32-bit platforms.
-
                // scavengeAssistTime is the time spent scavenging in the last GC cycle.
                //
                // This is reset once a GC cycle ends.