1
0
mirror of https://github.com/golang/go synced 2024-11-11 21:00:23 -07:00

runtime: fix typo in mgcscavenge.go

recieved -> received

Change-Id: I84336170e179832604e1311ea9263af36f9ce15a
GitHub-Last-Rev: a6068c1d2b
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>
This commit is contained in:
Ikko Ashimine 2021-01-22 15:00:35 +00:00 committed by Keith Randall
parent 7ece3a7b17
commit ec4051763d

View 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) { func (p *pageAlloc) scavengeOne(work addrRange, max uintptr, mayUnlock bool) (uintptr, addrRange) {
assertLockHeld(p.mheapLock) 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 so, just return.
if work.size() == 0 { if work.size() == 0 {
// Nothing to do. // Nothing to do.