1
0
mirror of https://github.com/golang/go synced 2024-09-30 06:34:29 -06:00

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>
This commit is contained in:
cui fliter 2022-11-03 15:39:41 +08:00 committed by Gopher Robot
parent 72ce9ba9cb
commit 969bea8d59
5 changed files with 6 additions and 6 deletions

View File

@ -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.
//

View File

@ -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

View File

@ -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)

View File

@ -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

View File

@ -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 {