]> Cypherpunks repositories - gostls13.git/commit
runtime: make sysMemStats' methods nosplit
authorMichael Anthony Knyszek <mknyszek@google.com>
Mon, 26 Oct 2020 19:35:23 +0000 (19:35 +0000)
committerMichael Knyszek <mknyszek@google.com>
Mon, 26 Oct 2020 20:10:27 +0000 (20:10 +0000)
commit22d2b984a680900ebbec6268f93a839286b6f130
treeadce0c47a73c491f412e00fbb7c636f8ac7b3024
parent751c37fd629e0ebb18c39a219fab2b224d016b70
runtime: make sysMemStats' methods nosplit

sysMemStats are updated early on in runtime initialization, so
triggering a stack growth would be bad. Mark them nosplit.

Thank you so much to cherryyz@google.com for finding this fix!

Fixes #42218.

Change-Id: Ic62db76e6a4f829355d7eaabed1727c51adfbd0f
Reviewed-on: https://go-review.googlesource.com/c/go/+/265157
Trust: Michael Knyszek <mknyszek@google.com>
Run-TryBot: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Austin Clements <austin@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
src/runtime/mstats.go