]> Cypherpunks repositories - gostls13.git/commit
runtime: consolidate h_spans and mheap_.spans
authorAustin Clements <austin@google.com>
Tue, 4 Oct 2016 20:03:00 +0000 (16:03 -0400)
committerAustin Clements <austin@google.com>
Tue, 25 Oct 2016 22:32:48 +0000 (22:32 +0000)
commit6b0f668044b7a8dd5d2360426cbcf6bd6785374d
treec4995a5bb177ab5de960c5e913bfe82379f7a441
parent66e849b168eef36a4159a4b038fe89eecd2f22e3
runtime: consolidate h_spans and mheap_.spans

Like h_allspans and mheap_.allspans, these were two ways of referring
to the spans array from when the runtime was split between C and Go.
Clean this up by making mheap_.spans a slice and eliminating h_spans.

Change-Id: I3aa7038d53c3a4252050aa33e468c48dfed0b70e
Reviewed-on: https://go-review.googlesource.com/30532
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rick Hudson <rlh@golang.org>
src/runtime/cgocheck.go
src/runtime/malloc.go
src/runtime/mbitmap.go
src/runtime/mfinal.go
src/runtime/mgcmark.go
src/runtime/mheap.go