diff options
author | Sabyrzhan Tasbolatov <snovitoll@gmail.com> | 2024-04-14 16:55:57 +0500 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2024-04-22 22:07:41 +0000 |
commit | 552faa8927a23fd5967435295c14af1741ac3653 (patch) | |
tree | 29a005cdc9789cb3bf31a5997511dafab36435b9 /src/runtime/proc.go | |
parent | 674657e1304b0ea1815257623150a2e06d8ddac2 (diff) | |
download | go-552faa8927a23fd5967435295c14af1741ac3653.tar.gz go-552faa8927a23fd5967435295c14af1741ac3653.zip |
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>
Diffstat (limited to 'src/runtime/proc.go')
-rw-r--r-- | src/runtime/proc.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/proc.go b/src/runtime/proc.go index 1468c7c599..e469f20e5e 100644 --- a/src/runtime/proc.go +++ b/src/runtime/proc.go @@ -6024,8 +6024,8 @@ func sysmon() { type sysmontick struct { schedtick uint32 - schedwhen int64 syscalltick uint32 + schedwhen int64 syscallwhen int64 } |