aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
authorAlexander Yastrebov <yastrebov.alex@gmail.com>2023-06-13 23:01:11 +0000
committerGopher Robot <gobot@golang.org>2023-06-14 00:03:57 +0000
commit8ffc931eae8bb7a4654695be39d95b62d369ee5c (patch)
tree811f0e6845cffdb3c6f0e9fdc310b4ab71065144 /src/runtime
parent80629caecb5b21b718f5d1d01fefda6e8d3a5baf (diff)
downloadgo-8ffc931eae8bb7a4654695be39d95b62d369ee5c.tar.xz
all: fix spelling errors
Fix spelling errors discovered using https://github.com/codespell-project/codespell. Errors in data files and vendored packages are ignored. Change-Id: I83c7818222f2eea69afbd270c15b7897678131dc GitHub-Last-Rev: 3491615b1b82832cc0064f535786546e89aa6184 GitHub-Pull-Request: golang/go#60758 Reviewed-on: https://go-review.googlesource.com/c/go/+/502576 Auto-Submit: Michael Pratt <mpratt@google.com> Run-TryBot: Michael Pratt <mpratt@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Michael Pratt <mpratt@google.com>
Diffstat (limited to 'src/runtime')
-rw-r--r--src/runtime/asm_386.s2
-rw-r--r--src/runtime/asm_amd64.s2
-rw-r--r--src/runtime/asm_arm.s2
-rw-r--r--src/runtime/asm_arm64.s2
-rw-r--r--src/runtime/asm_loong64.s2
-rw-r--r--src/runtime/asm_mips64x.s2
-rw-r--r--src/runtime/asm_mipsx.s2
-rw-r--r--src/runtime/asm_ppc64x.s2
-rw-r--r--src/runtime/asm_riscv64.s4
-rw-r--r--src/runtime/asm_s390x.s2
-rw-r--r--src/runtime/iface.go2
-rw-r--r--src/runtime/malloc.go2
-rw-r--r--src/runtime/map_fast64.go2
-rw-r--r--src/runtime/netpoll_kqueue.go2
-rw-r--r--src/runtime/proc_test.go6
-rw-r--r--src/runtime/stack_test.go2
-rw-r--r--src/runtime/time.go2
17 files changed, 20 insertions, 20 deletions
diff --git a/src/runtime/asm_386.s b/src/runtime/asm_386.s
index 71b01e7c75..67ffc24353 100644
--- a/src/runtime/asm_386.s
+++ b/src/runtime/asm_386.s
@@ -803,7 +803,7 @@ havem:
// If the m on entry wasn't nil,
// 1. the thread might be a Go thread,
// 2. or it wasn't the first call from a C thread on pthread platforms,
- // since then we skip dropm to resue the m in the first call.
+ // since then we skip dropm to reuse the m in the first call.
MOVL savedm-4(SP), DX
CMPL DX, $0
JNE droppedm
diff --git a/src/runtime/asm_amd64.s b/src/runtime/asm_amd64.s
index 9befd6fb38..edf0909a77 100644
--- a/src/runtime/asm_amd64.s
+++ b/src/runtime/asm_amd64.s
@@ -1066,7 +1066,7 @@ havem:
// If the m on entry wasn't nil,
// 1. the thread might be a Go thread,
// 2. or it wasn't the first call from a C thread on pthread platforms,
- // since then we skip dropm to resue the m in the first call.
+ // since then we skip dropm to reuse the m in the first call.
MOVQ savedm-8(SP), BX
CMPQ BX, $0
JNE done
diff --git a/src/runtime/asm_arm.s b/src/runtime/asm_arm.s
index f2be89586d..e3206a1d27 100644
--- a/src/runtime/asm_arm.s
+++ b/src/runtime/asm_arm.s
@@ -741,7 +741,7 @@ havem:
// If the m on entry wasn't nil,
// 1. the thread might be a Go thread,
// 2. or it wasn't the first call from a C thread on pthread platforms,
- // since then we skip dropm to resue the m in the first call.
+ // since then we skip dropm to reuse the m in the first call.
MOVW savedm-4(SP), R6
CMP $0, R6
B.NE done
diff --git a/src/runtime/asm_arm64.s b/src/runtime/asm_arm64.s
index 4822594cb3..7866e35e4f 100644
--- a/src/runtime/asm_arm64.s
+++ b/src/runtime/asm_arm64.s
@@ -1128,7 +1128,7 @@ havem:
// If the m on entry wasn't nil,
// 1. the thread might be a Go thread,
// 2. or it wasn't the first call from a C thread on pthread platforms,
- // since then we skip dropm to resue the m in the first call.
+ // since then we skip dropm to reuse the m in the first call.
MOVD savedm-8(SP), R6
CBNZ R6, droppedm
diff --git a/src/runtime/asm_loong64.s b/src/runtime/asm_loong64.s
index aa1603da1a..6ffa1392c4 100644
--- a/src/runtime/asm_loong64.s
+++ b/src/runtime/asm_loong64.s
@@ -567,7 +567,7 @@ havem:
// If the m on entry wasn't nil,
// 1. the thread might be a Go thread,
// 2. or it wasn't the first call from a C thread on pthread platforms,
- // since then we skip dropm to resue the m in the first call.
+ // since then we skip dropm to reuse the m in the first call.
MOVV savedm-8(SP), R12
BNE R12, droppedm
diff --git a/src/runtime/asm_mips64x.s b/src/runtime/asm_mips64x.s
index 582aec8c38..19592b5695 100644
--- a/src/runtime/asm_mips64x.s
+++ b/src/runtime/asm_mips64x.s
@@ -575,7 +575,7 @@ havem:
// If the m on entry wasn't nil,
// 1. the thread might be a Go thread,
// 2. or it wasn't the first call from a C thread on pthread platforms,
- // since then we skip dropm to resue the m in the first call.
+ // since then we skip dropm to reuse the m in the first call.
MOVV savedm-8(SP), R3
BNE R3, droppedm
diff --git a/src/runtime/asm_mipsx.s b/src/runtime/asm_mipsx.s
index 5cfb7de64f..eed4a05b38 100644
--- a/src/runtime/asm_mipsx.s
+++ b/src/runtime/asm_mipsx.s
@@ -565,7 +565,7 @@ havem:
// If the m on entry wasn't nil,
// 1. the thread might be a Go thread,
// 2. or it wasn't the first call from a C thread on pthread platforms,
- // since then we skip dropm to resue the m in the first call.
+ // since then we skip dropm to reuse the m in the first call.
MOVW savedm-4(SP), R3
BNE R3, droppedm
diff --git a/src/runtime/asm_ppc64x.s b/src/runtime/asm_ppc64x.s
index 40f51c68f0..66d0447c9d 100644
--- a/src/runtime/asm_ppc64x.s
+++ b/src/runtime/asm_ppc64x.s
@@ -741,7 +741,7 @@ havem:
// If the m on entry wasn't nil,
// 1. the thread might be a Go thread,
// 2. or it wasn't the first call from a C thread on pthread platforms,
- // since then we skip dropm to resue the m in the first call.
+ // since then we skip dropm to reuse the m in the first call.
MOVD savedm-8(SP), R6
CMP R6, $0
BNE droppedm
diff --git a/src/runtime/asm_riscv64.s b/src/runtime/asm_riscv64.s
index 805d09f67c..eb53cbbf47 100644
--- a/src/runtime/asm_riscv64.s
+++ b/src/runtime/asm_riscv64.s
@@ -625,7 +625,7 @@ havem:
// If the m on entry wasn't nil,
// 1. the thread might be a Go thread,
// 2. or it wasn't the first call from a C thread on pthread platforms,
- // since then we skip dropm to resue the m in the first call.
+ // since then we skip dropm to reuse the m in the first call.
MOV savedm-8(SP), X5
BNE ZERO, X5, droppedm
@@ -740,7 +740,7 @@ TEXT ·unspillArgs(SB),NOSPLIT,$0-0
//
// gcWriteBarrier does NOT follow the Go ABI. It accepts the
// number of bytes of buffer needed in X24, and returns a pointer
-// to the buffer spcae in X24.
+// to the buffer space in X24.
// It clobbers X31 aka T6 (the linker temp register - REG_TMP).
// The act of CALLing gcWriteBarrier will clobber RA (LR).
// It does not clobber any other general-purpose registers,
diff --git a/src/runtime/asm_s390x.s b/src/runtime/asm_s390x.s
index 17cfd439b2..a7f414ef91 100644
--- a/src/runtime/asm_s390x.s
+++ b/src/runtime/asm_s390x.s
@@ -670,7 +670,7 @@ havem:
// If the m on entry wasn't nil,
// 1. the thread might be a Go thread,
// 2. or it wasn't the first call from a C thread on pthread platforms,
- // since then we skip dropm to resue the m in the first call.
+ // since then we skip dropm to reuse the m in the first call.
MOVD savedm-8(SP), R6
CMPBNE R6, $0, droppedm
diff --git a/src/runtime/iface.go b/src/runtime/iface.go
index 0d0e827315..87f7c20f5d 100644
--- a/src/runtime/iface.go
+++ b/src/runtime/iface.go
@@ -121,7 +121,7 @@ func (t *itabTableType) find(inter *interfacetype, typ *_type) *itab {
// itabLock must be held.
func itabAdd(m *itab) {
// Bugs can lead to calling this while mallocing is set,
- // typically because this is called while panicing.
+ // typically because this is called while panicking.
// Crash reliably, rather than only when we need to grow
// the hash table.
if getg().m.mallocing != 0 {
diff --git a/src/runtime/malloc.go b/src/runtime/malloc.go
index c3a196e496..44479cc2be 100644
--- a/src/runtime/malloc.go
+++ b/src/runtime/malloc.go
@@ -1164,7 +1164,7 @@ func mallocgc(size uintptr, typ *_type, needzero bool) unsafe.Pointer {
publicationBarrier()
// As x and the heap bits are initialized, update
// freeIndexForScan now so x is seen by the GC
- // (including convervative scan) as an allocated object.
+ // (including conservative scan) as an allocated object.
// While this pointer can't escape into user code as a
// _live_ pointer until we return, conservative scanning
// may find a dead pointer that happens to point into this
diff --git a/src/runtime/map_fast64.go b/src/runtime/map_fast64.go
index 96d9b28d9d..d771e0b747 100644
--- a/src/runtime/map_fast64.go
+++ b/src/runtime/map_fast64.go
@@ -304,7 +304,7 @@ search:
if goarch.PtrSize == 8 {
*(*unsafe.Pointer)(k) = nil
} else {
- // There are three ways to squeeze at one ore more 32 bit pointers into 64 bits.
+ // There are three ways to squeeze at one or more 32 bit pointers into 64 bits.
// Just call memclrHasPointers instead of trying to handle all cases here.
memclrHasPointers(k, 8)
}
diff --git a/src/runtime/netpoll_kqueue.go b/src/runtime/netpoll_kqueue.go
index 23dc72f8bc..3af45e6892 100644
--- a/src/runtime/netpoll_kqueue.go
+++ b/src/runtime/netpoll_kqueue.go
@@ -66,7 +66,7 @@ func netpollopen(fd uintptr, pd *pollDesc) int32 {
if goarch.PtrSize == 4 {
// We only have a pointer-sized field to store into,
// so on a 32-bit system we get no sequence protection.
- // TODO(iant): If we notice any problems we could at leaset
+ // TODO(iant): If we notice any problems we could at least
// steal the low-order 2 bits for a tiny sequence number.
ev[0].udata = (*byte)(unsafe.Pointer(pd))
} else {
diff --git a/src/runtime/proc_test.go b/src/runtime/proc_test.go
index d240dc4404..67eadeac9e 100644
--- a/src/runtime/proc_test.go
+++ b/src/runtime/proc_test.go
@@ -1044,16 +1044,16 @@ func testPreemptionAfterSyscall(t *testing.T, syscallDuration time.Duration) {
defer runtime.GOMAXPROCS(runtime.GOMAXPROCS(2))
- interations := 10
+ iterations := 10
if testing.Short() {
- interations = 1
+ iterations = 1
}
const (
maxDuration = 5 * time.Second
nroutines = 8
)
- for i := 0; i < interations; i++ {
+ for i := 0; i < iterations; i++ {
c := make(chan bool, nroutines)
stop := uint32(0)
diff --git a/src/runtime/stack_test.go b/src/runtime/stack_test.go
index 96d37b839c..600e80d8bf 100644
--- a/src/runtime/stack_test.go
+++ b/src/runtime/stack_test.go
@@ -335,7 +335,7 @@ func TestDeferLeafSigpanic(t *testing.T) {
}()
// Call a leaf function. We must set up the exact call stack:
//
- // defering function -> leaf function -> sigpanic
+ // deferring function -> leaf function -> sigpanic
//
// On LR machines, the leaf function will have the same SP as
// the SP pushed for the defer frame.
diff --git a/src/runtime/time.go b/src/runtime/time.go
index 93c927f57c..c05351cb8e 100644
--- a/src/runtime/time.go
+++ b/src/runtime/time.go
@@ -1137,7 +1137,7 @@ func siftdownTimer(t []*timer, i int) {
// badTimer is called if the timer data structures have been corrupted,
// presumably due to racy use by the program. We panic here rather than
-// panicing due to invalid slice access while holding locks.
+// panicking due to invalid slice access while holding locks.
// See issue #25686.
func badTimer() {
throw("timer data corruption")