]> Cypherpunks repositories - gostls13.git/commit
runtime: simplify findObject bad pointer checking condition
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Tue, 22 Oct 2019 08:40:51 +0000 (15:40 +0700)
committerAustin Clements <austin@google.com>
Sat, 26 Oct 2019 00:05:37 +0000 (00:05 +0000)
commit80315322f3068123ab98632c55ee4bc9d7a03930
tree7092fb909cb339e38e3065418c01949d195e3ffb
parentd1969015b4ac29be4f518b94817d3f525380639d
runtime: simplify findObject bad pointer checking condition

Factor out case s == nil, make the code cleaner and easier to read.

Change-Id: I63f52e14351c0a0d20a611b1fe10fdc0d4947d96
Reviewed-on: https://go-review.googlesource.com/c/go/+/202498
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
src/runtime/mbitmap.go