]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix typo in mgcscavenge.go
authorIkko Ashimine <eltociear@gmail.com>
Fri, 22 Jan 2021 15:00:35 +0000 (15:00 +0000)
committerKeith Randall <khr@golang.org>
Fri, 22 Jan 2021 16:43:04 +0000 (16:43 +0000)
recieved -> received

Change-Id: I84336170e179832604e1311ea9263af36f9ce15a
GitHub-Last-Rev: a6068c1d2b5a7711b93899f798dbc84f1ea339e4
GitHub-Pull-Request: golang/go#43845
Reviewed-on: https://go-review.googlesource.com/c/go/+/285675
Reviewed-by: Keith Randall <khr@golang.org>
Trust: Alberto Donizetti <alb.donizetti@gmail.com>

src/runtime/mgcscavenge.go

index 38f09309dc8d16b38867854c0f4fb2d85c2f1973..a7c5bc49b874498694a7cc4c5305ea22deb81be7 100644 (file)
@@ -562,7 +562,7 @@ func (p *pageAlloc) scavengeUnreserve(r addrRange, gen uint32) {
 func (p *pageAlloc) scavengeOne(work addrRange, max uintptr, mayUnlock bool) (uintptr, addrRange) {
        assertLockHeld(p.mheapLock)
 
-       // Defensively check if we've recieved an empty address range.
+       // Defensively check if we've received an empty address range.
        // If so, just return.
        if work.size() == 0 {
                // Nothing to do.