aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
authorLeon Klingele <git@leonklingele.de>2019-02-22 15:53:52 +0000
committerBrad Fitzpatrick <bradfitz@golang.org>2019-02-26 23:02:05 +0000
commitd090429ea9af7cc2958fd95460196b02212c2b62 (patch)
tree7012d24ab7187e9e629288a21096da3ab07cfeac /src/runtime
parent337662f7caef76abd0122edffdc1f7f8102f19f8 (diff)
downloadgo-d090429ea9af7cc2958fd95460196b02212c2b62.tar.xz
all: fix typos as reported by 'misspell'
Change-Id: I904b8655f21743189814bccf24073b6fbb9fc56d GitHub-Last-Rev: b032c14394c949f9ad7b18d019a3979d38d4e1fb GitHub-Pull-Request: golang/go#29997 Reviewed-on: https://go-review.googlesource.com/c/160421 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/runtime')
-rw-r--r--src/runtime/mem_bsd.go2
-rw-r--r--src/runtime/mgcstack.go2
-rw-r--r--src/runtime/symtab.go2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/runtime/mem_bsd.go b/src/runtime/mem_bsd.go
index 84238d7279..796bb44223 100644
--- a/src/runtime/mem_bsd.go
+++ b/src/runtime/mem_bsd.go
@@ -45,7 +45,7 @@ func sysReserve(v unsafe.Pointer, n uintptr) unsafe.Pointer {
flags := int32(_MAP_ANON | _MAP_PRIVATE)
if raceenabled && GOOS == "darwin" {
// Currently the race detector expects memory to live within a certain
- // range, and on Darwin 10.10 mmap is prone to ignoring hints, moreso
+ // range, and on Darwin 10.10 mmap is prone to ignoring hints, more so
// than later versions and other BSDs (#26475). So, even though it's
// potentially dangerous to MAP_FIXED, we do it in the race detection
// case because it'll help maintain the race detector's invariants.
diff --git a/src/runtime/mgcstack.go b/src/runtime/mgcstack.go
index 86e60d4381..baeaa4fd55 100644
--- a/src/runtime/mgcstack.go
+++ b/src/runtime/mgcstack.go
@@ -274,7 +274,7 @@ func (s *stackScanState) addObject(addr uintptr, typ *_type) {
obj.off = uint32(addr - s.stack.lo)
obj.size = uint32(typ.size)
obj.setType(typ)
- // obj.left and obj.right will be initalized by buildIndex before use.
+ // obj.left and obj.right will be initialized by buildIndex before use.
s.nobjs++
}
diff --git a/src/runtime/symtab.go b/src/runtime/symtab.go
index 17e342ef69..a7538482dc 100644
--- a/src/runtime/symtab.go
+++ b/src/runtime/symtab.go
@@ -475,7 +475,7 @@ func FuncForPC(pc uintptr) *Func {
}
if inldata := funcdata(f, _FUNCDATA_InlTree); inldata != nil {
// Note: strict=false so bad PCs (those between functions) don't crash the runtime.
- // We just report the preceeding function in that situation. See issue 29735.
+ // We just report the preceding function in that situation. See issue 29735.
// TODO: Perhaps we should report no function at all in that case.
// The runtime currently doesn't have function end info, alas.
if ix := pcdatavalue1(f, _PCDATA_InlTreeIndex, pc, nil, false); ix >= 0 {