]> Cypherpunks repositories - gostls13.git/commit
runtime: handle m0 padding better
authorRuss Cox <rsc@golang.org>
Tue, 4 Mar 2025 15:31:02 +0000 (10:31 -0500)
committerGopher Robot <gobot@golang.org>
Fri, 11 Apr 2025 19:24:59 +0000 (12:24 -0700)
commit3968a5bca4fc0cdb4e2bb9fd6169deafdafc420d
treed78415165d6bbc9f77fc38a452a12217fb675bfd
parentc77ada1b78ae83c88a4e964a7cbfa2e708073d8b
runtime: handle m0 padding better

The SpinbitMutex experiment requires m structs other than m0
to be allocated in 2048-byte size class, by adding padding.
Do the calculation more explicitly, to avoid future CLs like CL 653335.

Change-Id: I83ae1e86ef3711ab65441f4e487f94b9e1429029
Reviewed-on: https://go-review.googlesource.com/c/go/+/654595
Reviewed-by: Rhys Hiltner <rhys.hiltner@gmail.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Michael Knyszek <mknyszek@google.com>
src/runtime/asan.go
src/runtime/asan0.go
src/runtime/lock_spinbit.go
src/runtime/proc.go
src/runtime/runtime2.go