mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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 <mknyszek@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Auto-Submit: Michael Knyszek <mknyszek@google.com> Reviewed-by: Keith Randall <khr@google.com> Reviewed-by: Keith Randall <khr@golang.org>
This commit is contained in:
parent
1c59199c91
commit
e28cc362a8
2 changed files with 0 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue