aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/mpallocbits.go
diff options
context:
space:
mode:
authorOleksandr Redko <oleksandr.red+github@gmail.com>2023-02-07 09:09:24 +0000
committerGopher Robot <gobot@golang.org>2023-02-08 14:52:12 +0000
commit1a09d57de58a90987789ef637083aac21533eeb7 (patch)
treef8ca020a37ce5365babf009d5d8208d54bfb882f /src/runtime/mpallocbits.go
parent0602e2cdbc4b42e90c453e6ae365ad5f13f61c92 (diff)
downloadgo-1a09d57de58a90987789ef637083aac21533eeb7.tar.xz
runtime: correct typos
- Fix typo in throw error message for arena. - Correct typos in assembly and Go comments. - Fix log message in TestTraceCPUProfile. Change-Id: I874c9e8cd46394448b6717bc6021aa3ecf319d16 GitHub-Last-Rev: d27fad4d3cea81cc7a4ca6917985bcf5fa49b0e0 GitHub-Pull-Request: golang/go#58375 Reviewed-on: https://go-review.googlesource.com/c/go/+/465975 Reviewed-by: David Chase <drchase@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Run-TryBot: Ian Lance Taylor <iant@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'src/runtime/mpallocbits.go')
-rw-r--r--src/runtime/mpallocbits.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/mpallocbits.go b/src/runtime/mpallocbits.go
index f63164becd..2f35ce007c 100644
--- a/src/runtime/mpallocbits.go
+++ b/src/runtime/mpallocbits.go
@@ -187,7 +187,7 @@ outer:
}
// Strategy: shrink all runs of zeros by max. If any runs of zero
- // remain, then we've identified a larger maxiumum zero run.
+ // remain, then we've identified a larger maximum zero run.
p := max // number of zeros we still need to shrink by.
k := uint(1) // current minimum length of runs of ones in x.
for {