]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix a few function names on comments
authorcui fliter <imcusg@gmail.com>
Thu, 3 Nov 2022 07:39:41 +0000 (15:39 +0800)
committerGopher Robot <gobot@golang.org>
Mon, 7 Nov 2022 19:48:30 +0000 (19:48 +0000)
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>

src/runtime/internal/sys/intrinsics_common.go
src/runtime/os_openbsd_syscall2.go
src/runtime/stack.go
src/runtime/stubs2.go
src/runtime/traceback.go

index 709ec23f9debc759f9cac6d34f38ca7abf7cbf1c..1461551dda6e73c94ec1a29228a029e992571747 100644 (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.
 //
index ab6b1818285c067cc48330603a733b031e9d7d87..2fed794d7ae5cc9462a34afd2ec016e54feb89e1 100644 (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
index 87d8e519bdd2211fb989574f65852389536fe78d..546f9978816645719b103a9ca6156c285684a70c 100644 (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)
index d2ad8d4ec88ed659fa43d02d01924849a6a5ed0c..c245c9c1a11eff2f7120c219199e9fe0617d2d88 100644 (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
index 794ea104072f4a7aef67798abf8a748adad8b81c..37f35d5637edad069b0f254770953cb4db5076e8 100644 (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 {