Skip to content

Commit

Permalink
runtime: fix a few function names on comments
Browse files Browse the repository at this point in the history
Change-Id: I9ef4898d68dfd06618c0bd8e23f81a1d2c77a836
Signed-off-by: cui fliter <[email protected]>
Reviewed-on: https://go-review.googlesource.com/c/go/+/447460
Auto-Submit: Michael Pratt <[email protected]>
TryBot-Result: Gopher Robot <[email protected]>
Reviewed-by: Matthew Dempsky <[email protected]>
Reviewed-by: Michael Pratt <[email protected]>
Run-TryBot: Michael Pratt <[email protected]>
  • Loading branch information
cuishuang authored and gopherbot committed Nov 7, 2022
1 parent 72ce9ba commit 969bea8
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/runtime/internal/sys/intrinsics_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
//
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/os_openbsd_syscall2.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/stack.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/stubs2.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/runtime/traceback.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 969bea8

Please sign in to comment.