aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/lock_spinbit.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/lock_spinbit.go')
-rw-r--r--src/runtime/lock_spinbit.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/lock_spinbit.go b/src/runtime/lock_spinbit.go
index 7e84f3e1c2..ba5268abdd 100644
--- a/src/runtime/lock_spinbit.go
+++ b/src/runtime/lock_spinbit.go
@@ -90,7 +90,7 @@ type mWaitList struct {
// lockVerifyMSize confirms that we can recreate the low bits of the M pointer.
func lockVerifyMSize() {
- size := roundupsize(unsafe.Sizeof(m{}), false) + mallocHeaderSize
+ size := roundupsize(unsafe.Sizeof(mPadded{}), false) + mallocHeaderSize
if size&mutexMMask != 0 {
print("M structure uses sizeclass ", size, "/", hex(size), " bytes; ",
"incompatible with mutex flag mask ", hex(mutexMMask), "\n")