]> Cypherpunks repositories - gostls13.git/commit
[dev.garbage] runtime: cleanup and optimize span.base()
authorRick Hudson <rlh@golang.org>
Mon, 14 Mar 2016 16:02:02 +0000 (12:02 -0400)
committerRick Hudson <rlh@golang.org>
Wed, 27 Apr 2016 21:54:59 +0000 (21:54 +0000)
commitf8d0d4fd59b6cb6f875eac7753f036b10a28f995
tree800bbd89e2777867363a2ee542f2802a45e64edf
parent8dda1c4c08adf8b2107dec1c0d70d24443269ccd
[dev.garbage] runtime: cleanup and optimize span.base()

Prior to this CL the base of a span was calculated in various
places using shifts or calls to base(). This CL now
always calls base() which has been optimized to calculate the
base of the span when the span is initialized and store that
value in the span structure.

Change-Id: I661f2bfa21e3748a249cdf049ef9062db6e78100
Reviewed-on: https://go-review.googlesource.com/20703
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/malloc.go
src/runtime/mbitmap.go
src/runtime/mcentral.go
src/runtime/mgcmark.go
src/runtime/mgcsweep.go
src/runtime/mheap.go