]> Cypherpunks repositories - gostls13.git/commit
runtime: eliminate memstats.heap_reachable
authorAustin Clements <austin@google.com>
Thu, 15 Sep 2016 18:30:31 +0000 (14:30 -0400)
committerAustin Clements <austin@google.com>
Mon, 26 Sep 2016 22:00:47 +0000 (22:00 +0000)
commit2098e5d39afc3e6f687fcabd7704e8013f9c0dbd
tree98e2a90afa8f18c7037aafc864f2a5e53078f98c
parentec9c84c8840124b4cf883ab08f6c2dc6baf20732
runtime: eliminate memstats.heap_reachable

We used to compute an estimate of the reachable heap size that was
different from the marked heap size. This ultimately caused more
problems than it solved, so we pulled it out, but memstats still has
both heap_reachable and heap_marked, and there are some leftover TODOs
about the problems with this estimate.

Clean this up by eliminating heap_reachable in favor of heap_marked
and deleting the stale TODOs.

Change-Id: I713bc20a7c90683d2b43ff63c0b21a440269cc4d
Reviewed-on: https://go-review.googlesource.com/29271
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rick Hudson <rlh@golang.org>
src/runtime/mgc.go
src/runtime/mstats.go