]> Cypherpunks repositories - gostls13.git/commit
runtime: extend ReadMemStatsSlow to re-compute HeapReleased
authorMichael Anthony Knyszek <mknyszek@google.com>
Mon, 15 Oct 2018 23:00:58 +0000 (23:00 +0000)
committerMichael Knyszek <mknyszek@google.com>
Tue, 30 Oct 2018 15:28:07 +0000 (15:28 +0000)
commit61d40c8abc82fd845b5e4340bdf0495de0de7ecd
tree5d35ea74c909d5a01b7aca3ceb21dd54dd0bbcae
parent78bb91cbd34a8f2f3784ba5df94c0e56c44fc751
runtime: extend ReadMemStatsSlow to re-compute HeapReleased

This change extends the test function ReadMemStatsSlow to re-compute
the HeapReleased statistic such that it is checked in testing to be
consistent with the bookkeeping done in the runtime.

Change-Id: I49f5c2620f5731edea8e9f768744cf997dcd7c22
Reviewed-on: https://go-review.googlesource.com/c/142397
Run-TryBot: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/export_test.go