]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix function name in comments
authorcui fliter <imcusg@gmail.com>
Wed, 1 Mar 2023 14:43:22 +0000 (22:43 +0800)
committerGopher Robot <gobot@golang.org>
Wed, 1 Mar 2023 22:20:32 +0000 (22:20 +0000)
Change-Id: I18bb87bfdea8b6d7994091ced5134aa2549f221e
Reviewed-on: https://go-review.googlesource.com/c/go/+/472476
Run-TryBot: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/runtime/coverage/emit.go
src/runtime/mgclimit.go
src/runtime/mgcsweep.go
src/runtime/os_netbsd.go

index 2aed99c718999f574e9a3c03b30fbd347e28715b..300ff2caca7d1e969cf79efc2c7f93dab030d02d 100644 (file)
@@ -241,7 +241,7 @@ func prepareForMetaEmit() ([]rtcov.CovMetaBlob, error) {
        return ml, nil
 }
 
-// emitMetaData emits the meta-data output file to the specified
+// emitMetaDataToDirectory emits the meta-data output file to the specified
 // directory, returning an error if something went wrong.
 func emitMetaDataToDirectory(outdir string, ml []rtcov.CovMetaBlob) error {
        ml, err := prepareForMetaEmit()
@@ -289,7 +289,7 @@ func emitCounterData() {
        }
 }
 
-// emitMetaData emits the counter-data output file for this coverage run.
+// emitCounterDataToDirectory emits the counter-data output file for this coverage run.
 func emitCounterDataToDirectory(outdir string) error {
        // Ask the runtime for the list of coverage counter symbols.
        cl := getCovCounterList()
@@ -336,7 +336,7 @@ func emitCounterDataToDirectory(outdir string) error {
        return nil
 }
 
-// emitMetaData emits counter data for this coverage run to an io.Writer.
+// emitCounterDataToWriter emits counter data for this coverage run to an io.Writer.
 func (s *emitState) emitCounterDataToWriter(w io.Writer) error {
        if err := s.emitCounterDataFile(finalHash, w); err != nil {
                return err
index bcbe7f88a0567db54ceb5f24dd22ff8ba72525b1..51c5506eee4b9d98cd82229528cf613248a5c833 100644 (file)
@@ -174,7 +174,7 @@ func (l *gcCPULimiterState) update(now int64) {
        l.unlock()
 }
 
-// updatedLocked is the implementation of update. l.lock must be held.
+// updateLocked is the implementation of update. l.lock must be held.
 func (l *gcCPULimiterState) updateLocked(now int64) {
        lastUpdate := l.lastUpdate.Load()
        if now < lastUpdate {
index 6ccf090ac5b3cd379152a7a45dbe2e3bb991f0f4..773e27e646f69300a535f1c39c313eba60314f86 100644 (file)
@@ -484,7 +484,7 @@ func (s *mspan) ensureSwept() {
        }
 }
 
-// Sweep frees or collects finalizers for blocks not marked in the mark phase.
+// sweep frees or collects finalizers for blocks not marked in the mark phase.
 // It clears the mark bits in preparation for the next GC round.
 // Returns true if the span was returned to heap.
 // If preserve=true, don't return it to heap nor relink in mcentral lists;
index 7f8c6bc4e3b4ab24bdf1332c94fe12d7d1603b12..f76c87e02e06c7fa4182461e3b42559e8505b7d9 100644 (file)
@@ -246,7 +246,7 @@ func newosproc(mp *m) {
 // It is written in assembly, uses ABI0, is marked TOPFRAME, and calls netbsdMstart0.
 func netbsdMstart()
 
-// netbsdMStart0 is the function call that starts executing a newly
+// netbsdMstart0 is the function call that starts executing a newly
 // created thread. On NetBSD, a new thread inherits the signal stack
 // of the creating thread. That confuses minit, so we remove that
 // signal stack here before calling the regular mstart. It's a bit