]> Cypherpunks repositories - gostls13.git/commit
runtime: reduced struct sizes found via pahole
authorSabyrzhan Tasbolatov <snovitoll@gmail.com>
Sun, 14 Apr 2024 11:55:57 +0000 (16:55 +0500)
committerGopher Robot <gobot@golang.org>
Mon, 22 Apr 2024 22:07:41 +0000 (22:07 +0000)
commit552faa8927a23fd5967435295c14af1741ac3653
tree29a005cdc9789cb3bf31a5997511dafab36435b9
parent674657e1304b0ea1815257623150a2e06d8ddac2
runtime: reduced struct sizes found via pahole

During my research of pahole with Go structs, I've found couple of
structs in runtime/ pkg where we can reduce several structs' sizes
highligted by pahole tool which detect byte holes and paddings.

Overall, there are 80 bytes reduced.

Change-Id: I398e5ed6f5b199394307741981cb5ad5b875e98f
Reviewed-on: https://go-review.googlesource.com/c/go/+/578795
Auto-Submit: Keith Randall <khr@golang.org>
Reviewed-by: Joedian Reid <joedian@google.com>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/runtime/mgclimit.go
src/runtime/mgcscavenge.go
src/runtime/netpoll.go
src/runtime/proc.go
src/runtime/runtime2.go
src/runtime/sizeof_test.go
src/runtime/symtab.go