Skip to content

Commit

Permalink
runtime: fix function name in comments
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
cuishuang authored and gopherbot committed Mar 1, 2023
1 parent 9f2fe2d commit af9f212
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/runtime/coverage/emit.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/mgclimit.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/mgcsweep.go
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/os_netbsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit af9f212

Please sign in to comment.