From e28cc362a825b297fa8a10dc95d7c0d2e2b21dfc Mon Sep 17 00:00:00 2001 From: Michael Anthony Knyszek Date: Wed, 7 Sep 2022 20:11:00 +0000 Subject: runtime: remove alignment padding in mheap and pageAlloc All subfields use atomic types to ensure alignment, so there's no more need for these fields. Change-Id: Iada4253f352a074073ce603f1f6b07cbd5b7c58a Reviewed-on: https://go-review.googlesource.com/c/go/+/429220 Run-TryBot: Michael Knyszek TryBot-Result: Gopher Robot Auto-Submit: Michael Knyszek Reviewed-by: Keith Randall Reviewed-by: Keith Randall --- src/runtime/mpagealloc.go | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/runtime/mpagealloc.go') diff --git a/src/runtime/mpagealloc.go b/src/runtime/mpagealloc.go index 83df7c5150..853d7fc9ca 100644 --- a/src/runtime/mpagealloc.go +++ b/src/runtime/mpagealloc.go @@ -267,8 +267,6 @@ type pageAlloc struct { // All access is protected by the mheapLock. inUse addrRanges - _ uint32 // Align scav so it's easier to reason about alignment within scav. - // scav stores the scavenger state. scav struct { // index is an efficient index of chunks that have pages available to -- cgit v1.3