Commit 3412baaa authored by Zhou Peng's avatar Zhou Peng Committed by Austin Clements

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/102575Reviewed-by: default avatarAustin Clements <austin@google.com>
parent 683e2fd5
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment