]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.garbage] runtime: use s.base() everywhere it makes sense
authorAustin Clements <austin@google.com>
Thu, 28 Apr 2016 14:59:00 +0000 (10:59 -0400)
committerAustin Clements <austin@google.com>
Fri, 29 Apr 2016 03:53:14 +0000 (03:53 +0000)
commitb7adc41fbacac446c1daf0cb282cb2a921d4a15b
tree119544779047b45d98afae79361295a2f0608c11
parent2e8b74b69574e969b5565e69cb54d39064b2dba1
[dev.garbage] runtime: use s.base() everywhere it makes sense

Currently we have lots of (s.start << _PageShift) and variants. We now
have an s.base() function that returns this. It's faster and more
readable, so use it.

Change-Id: I888060a9dae15ea75ca8cc1c2b31c905e71b452b
Reviewed-on: https://go-review.googlesource.com/22559
Reviewed-by: Rick Hudson <rlh@golang.org>
Run-TryBot: Austin Clements <austin@google.com>
src/runtime/heapdump.go
src/runtime/mfinal.go
src/runtime/mgcmark.go
src/runtime/mheap.go
src/runtime/stack.go