Skip to content

Commit af9f212

Browse files
cuishuanggopherbot
authored andcommitted
runtime: fix function name in comments
Change-Id: I18bb87bfdea8b6d7994091ced5134aa2549f221e Reviewed-on: https://go-review.googlesource.com/c/go/+/472476 Run-TryBot: Ian Lance Taylor <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
1 parent 9f2fe2d commit af9f212

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/runtime/coverage/emit.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ func prepareForMetaEmit() ([]rtcov.CovMetaBlob, error) {
241241
return ml, nil
242242
}
243243

244-
// emitMetaData emits the meta-data output file to the specified
244+
// emitMetaDataToDirectory emits the meta-data output file to the specified
245245
// directory, returning an error if something went wrong.
246246
func emitMetaDataToDirectory(outdir string, ml []rtcov.CovMetaBlob) error {
247247
ml, err := prepareForMetaEmit()
@@ -289,7 +289,7 @@ func emitCounterData() {
289289
}
290290
}
291291

292-
// emitMetaData emits the counter-data output file for this coverage run.
292+
// emitCounterDataToDirectory emits the counter-data output file for this coverage run.
293293
func emitCounterDataToDirectory(outdir string) error {
294294
// Ask the runtime for the list of coverage counter symbols.
295295
cl := getCovCounterList()
@@ -336,7 +336,7 @@ func emitCounterDataToDirectory(outdir string) error {
336336
return nil
337337
}
338338

339-
// emitMetaData emits counter data for this coverage run to an io.Writer.
339+
// emitCounterDataToWriter emits counter data for this coverage run to an io.Writer.
340340
func (s *emitState) emitCounterDataToWriter(w io.Writer) error {
341341
if err := s.emitCounterDataFile(finalHash, w); err != nil {
342342
return err

src/runtime/mgclimit.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ func (l *gcCPULimiterState) update(now int64) {
174174
l.unlock()
175175
}
176176

177-
// updatedLocked is the implementation of update. l.lock must be held.
177+
// updateLocked is the implementation of update. l.lock must be held.
178178
func (l *gcCPULimiterState) updateLocked(now int64) {
179179
lastUpdate := l.lastUpdate.Load()
180180
if now < lastUpdate {

src/runtime/mgcsweep.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ func (s *mspan) ensureSwept() {
484484
}
485485
}
486486

487-
// Sweep frees or collects finalizers for blocks not marked in the mark phase.
487+
// sweep frees or collects finalizers for blocks not marked in the mark phase.
488488
// It clears the mark bits in preparation for the next GC round.
489489
// Returns true if the span was returned to heap.
490490
// If preserve=true, don't return it to heap nor relink in mcentral lists;

src/runtime/os_netbsd.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ func newosproc(mp *m) {
246246
// It is written in assembly, uses ABI0, is marked TOPFRAME, and calls netbsdMstart0.
247247
func netbsdMstart()
248248

249-
// netbsdMStart0 is the function call that starts executing a newly
249+
// netbsdMstart0 is the function call that starts executing a newly
250250
// created thread. On NetBSD, a new thread inherits the signal stack
251251
// of the creating thread. That confuses minit, so we remove that
252252
// signal stack here before calling the regular mstart. It's a bit

0 commit comments

Comments
 (0)