diff options
| author | Zhou Peng <p@ctriple.cn> | 2018-03-26 15:06:59 +0000 |
|---|---|---|
| committer | Austin Clements <austin@google.com> | 2018-03-26 17:40:46 +0000 |
| commit | 3412baaa029e10bb2fdf9cd596895b12e4a3bda1 (patch) | |
| tree | 10f39685549872cca68636d97a0df552ac1ee76d /src/runtime/mbitmap.go | |
| parent | 683e2fd578495d1de399b16ed82bf5c35a4164f0 (diff) | |
| download | go-3412baaa029e10bb2fdf9cd596895b12e4a3bda1.tar.xz | |
runtime: fix comment typo
This was a typo mistake according to if cond and runtime/mheap.go:323
Change-Id: Id046d4afbfe0ea43cb29e1a9f400e1f130de221d
Reviewed-on: https://go-review.googlesource.com/102575
Reviewed-by: Austin Clements <austin@google.com>
Diffstat (limited to 'src/runtime/mbitmap.go')
| -rw-r--r-- | src/runtime/mbitmap.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/mbitmap.go b/src/runtime/mbitmap.go index afaec55569..38d994eb5a 100644 --- a/src/runtime/mbitmap.go +++ b/src/runtime/mbitmap.go @@ -257,7 +257,7 @@ func (s *mspan) objIndex(p uintptr) uintptr { return 0 } if s.baseMask != 0 { - // s.baseMask is 0, elemsize is a power of two, so shift by s.divShift + // s.baseMask is non-0, elemsize is a power of two, so shift by s.divShift return byteOffset >> s.divShift } return uintptr(((uint64(byteOffset) >> s.divShift) * uint64(s.divMul)) >> s.divShift2) |
