aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
authorcui fliter <imcusg@gmail.com>2022-11-03 15:39:41 +0800
committerGopher Robot <gobot@golang.org>2022-11-07 19:48:30 +0000
commit969bea8d59daa6bdd478b71f6e99d8b8f625a140 (patch)
tree6cdfdb01c9a633fd897924568ca3565fec2b0f95 /src/runtime
parent72ce9ba9cb640f1a2184389d1dc146d731882328 (diff)
downloadgo-969bea8d59daa6bdd478b71f6e99d8b8f625a140.tar.xz
runtime: fix a few function names on comments
Change-Id: I9ef4898d68dfd06618c0bd8e23f81a1d2c77a836 Signed-off-by: cui fliter <imcusg@gmail.com> Reviewed-on: https://go-review.googlesource.com/c/go/+/447460 Auto-Submit: Michael Pratt <mpratt@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com> Reviewed-by: Michael Pratt <mpratt@google.com> Run-TryBot: Michael Pratt <mpratt@google.com>
Diffstat (limited to 'src/runtime')
-rw-r--r--src/runtime/internal/sys/intrinsics_common.go2
-rw-r--r--src/runtime/os_openbsd_syscall2.go2
-rw-r--r--src/runtime/stack.go2
-rw-r--r--src/runtime/stubs2.go2
-rw-r--r--src/runtime/traceback.go4
5 files changed, 6 insertions, 6 deletions
diff --git a/src/runtime/internal/sys/intrinsics_common.go b/src/runtime/internal/sys/intrinsics_common.go
index 709ec23f9d..1461551dda 100644
--- a/src/runtime/internal/sys/intrinsics_common.go
+++ b/src/runtime/internal/sys/intrinsics_common.go
@@ -24,7 +24,7 @@ const len8tab = "" +
"\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08" +
"\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08"
-// len64 returns the minimum number of bits required to represent x; the result is 0 for x == 0.
+// Len64 returns the minimum number of bits required to represent x; the result is 0 for x == 0.
//
// nosplit because this is used in src/runtime/histogram.go, which make run in sensitive contexts.
//
diff --git a/src/runtime/os_openbsd_syscall2.go b/src/runtime/os_openbsd_syscall2.go
index ab6b181828..2fed794d7a 100644
--- a/src/runtime/os_openbsd_syscall2.go
+++ b/src/runtime/os_openbsd_syscall2.go
@@ -38,7 +38,7 @@ func usleep_no_g(usec uint32) {
usleep(usec)
}
-// write calls the write system call.
+// write1 calls the write system call.
// It returns a non-negative number of bytes written or a negative errno value.
//
//go:noescape
diff --git a/src/runtime/stack.go b/src/runtime/stack.go
index 87d8e519bd..546f997881 100644
--- a/src/runtime/stack.go
+++ b/src/runtime/stack.go
@@ -564,7 +564,7 @@ type adjustinfo struct {
sghi uintptr
}
-// Adjustpointer checks whether *vpp is in the old stack described by adjinfo.
+// adjustpointer checks whether *vpp is in the old stack described by adjinfo.
// If so, it rewrites *vpp to point into the new stack.
func adjustpointer(adjinfo *adjustinfo, vpp unsafe.Pointer) {
pp := (*uintptr)(vpp)
diff --git a/src/runtime/stubs2.go b/src/runtime/stubs2.go
index d2ad8d4ec8..c245c9c1a1 100644
--- a/src/runtime/stubs2.go
+++ b/src/runtime/stubs2.go
@@ -25,7 +25,7 @@ func usleep_no_g(usec uint32) {
usleep(usec)
}
-// write calls the write system call.
+// write1 calls the write system call.
// It returns a non-negative number of bytes written or a negative errno value.
//
//go:noescape
diff --git a/src/runtime/traceback.go b/src/runtime/traceback.go
index 794ea10407..37f35d5637 100644
--- a/src/runtime/traceback.go
+++ b/src/runtime/traceback.go
@@ -810,7 +810,7 @@ func printAncestorTraceback(ancestor ancestorInfo) {
}
}
-// printAncestorTraceback prints the given function info at a given pc
+// printAncestorTracebackFuncInfo prints the given function info at a given pc
// within an ancestor traceback. The precision of this info is reduced
// due to only have access to the pcs at the time of the caller
// goroutine being created.
@@ -1282,7 +1282,7 @@ type cgoSymbolizerArg struct {
data uintptr
}
-// cgoTraceback prints a traceback of callers.
+// printCgoTraceback prints a traceback of callers.
func printCgoTraceback(callers *cgoCallers) {
if cgoSymbolizer == nil {
for _, c := range callers {