aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/malloc.go
diff options
context:
space:
mode:
authorMichael Anthony Knyszek <mknyszek@google.com>2020-07-31 21:32:26 +0000
committerMichael Knyszek <mknyszek@google.com>2020-10-26 18:09:52 +0000
commit39e335ac0618044bbd8ed2fca5e5b3583d8c444e (patch)
tree7d0313dea4ae3fde47778b6f1daec5ce54e5bf1e /src/runtime/malloc.go
parent8ebc58452af3a586a3da1f68725bc83c78d4b073 (diff)
downloadgo-39e335ac0618044bbd8ed2fca5e5b3583d8c444e.tar.xz
runtime: copy in MemStats fields explicitly
Currently MemStats is populated via an unsafe memmove from memstats, but this places unnecessary structural restrictions on memstats, is annoying to reason about, and tightly couples the two. Instead, just populate the fields of MemStats explicitly. Change-Id: I96f6a64326b1a91d4084e7b30169a4bbe6a331f9 Reviewed-on: https://go-review.googlesource.com/c/go/+/246972 Run-TryBot: Michael Knyszek <mknyszek@google.com> TryBot-Result: Go Bot <gobot@golang.org> Trust: Michael Knyszek <mknyszek@google.com> Reviewed-by: Michael Pratt <mpratt@google.com>
Diffstat (limited to 'src/runtime/malloc.go')
0 files changed, 0 insertions, 0 deletions