runtime: fix comment typo in mpagealloc.go

leve --> level

Change-Id: Ia5ff46c79c4dda2df426ec75d69e8fcede909b47
GitHub-Last-Rev: e57cad22d9
GitHub-Pull-Request: golang/go#54788
Reviewed-on: https://go-review.googlesource.com/c/go/+/426974
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
Reviewed-by: Keith Randall <khr@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
Auto-Submit: Keith Randall <khr@google.com>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Reviewed-by: Keith Randall <khr@google.com>
This commit is contained in:
bqyang 2022-08-31 08:28:13 +00:00 committed by Gopher Robot
parent fa0e3bffb4
commit bc0a033266

View file

@ -676,7 +676,7 @@ nextLevel:
// Determine j0, the first index we should start iterating from. // Determine j0, the first index we should start iterating from.
// The searchAddr may help us eliminate iterations if we followed the // The searchAddr may help us eliminate iterations if we followed the
// searchAddr on the previous level or we're on the root leve, in which // searchAddr on the previous level or we're on the root level, in which
// case the searchAddr should be the same as i after levelShift. // case the searchAddr should be the same as i after levelShift.
j0 := 0 j0 := 0
if searchIdx := offAddrToLevelIndex(l, p.searchAddr); searchIdx&^(entriesPerBlock-1) == i { if searchIdx := offAddrToLevelIndex(l, p.searchAddr); searchIdx&^(entriesPerBlock-1) == i {