]> Cypherpunks repositories - gostls13.git/commit
runtime: eliminate mheap.nspan and use range loops
authorAustin Clements <austin@google.com>
Tue, 4 Oct 2016 19:56:19 +0000 (15:56 -0400)
committerAustin Clements <austin@google.com>
Tue, 25 Oct 2016 22:32:45 +0000 (22:32 +0000)
commit66e849b168eef36a4159a4b038fe89eecd2f22e3
treee5e4cdac04ab330e70ee70a3231f320e4f13f09a
parent4d6207790b2f08daa00d2a7a67854a159ab2f601
runtime: eliminate mheap.nspan and use range loops

This was necessary in the C days when allspans was an mspan**, but now
that allspans is a Go slice, this is redundant with len(allspans) and
we can use range loops over allspans.

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