]> Cypherpunks repositories - gostls13.git/commit
runtime: avoid conditional execution in morePointers and isPointer
authorAustin Clements <austin@google.com>
Fri, 29 Apr 2016 19:17:34 +0000 (15:17 -0400)
committerAustin Clements <austin@google.com>
Sat, 30 Apr 2016 16:49:47 +0000 (16:49 +0000)
commita5d3f7ece9033393166d0c74cd1121c15032ba4d
tree9c6f405f1fecb8148350c3d0118a59a23fab3c89
parent7a60a962b9284763f8ff239aae54d1d858dd4543
runtime: avoid conditional execution in morePointers and isPointer

heapBits.bits is carefully written to produce good machine code. Use
it in heapBits.morePointers and heapBits.isPointer to get good machine
code there, too.

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