mirror of
https://github.com/golang/go
synced 2024-11-17 22:05:02 -07:00
runtime: fix function name in comments
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>
This commit is contained in:
parent
9f2fe2d721
commit
af9f21289f
@ -241,7 +241,7 @@ func prepareForMetaEmit() ([]rtcov.CovMetaBlob, error) {
|
|||||||
return ml, nil
|
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.
|
// directory, returning an error if something went wrong.
|
||||||
func emitMetaDataToDirectory(outdir string, ml []rtcov.CovMetaBlob) error {
|
func emitMetaDataToDirectory(outdir string, ml []rtcov.CovMetaBlob) error {
|
||||||
ml, err := prepareForMetaEmit()
|
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 {
|
func emitCounterDataToDirectory(outdir string) error {
|
||||||
// Ask the runtime for the list of coverage counter symbols.
|
// Ask the runtime for the list of coverage counter symbols.
|
||||||
cl := getCovCounterList()
|
cl := getCovCounterList()
|
||||||
@ -336,7 +336,7 @@ func emitCounterDataToDirectory(outdir string) error {
|
|||||||
return nil
|
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 {
|
func (s *emitState) emitCounterDataToWriter(w io.Writer) error {
|
||||||
if err := s.emitCounterDataFile(finalHash, w); err != nil {
|
if err := s.emitCounterDataFile(finalHash, w); err != nil {
|
||||||
return err
|
return err
|
||||||
|
@ -174,7 +174,7 @@ func (l *gcCPULimiterState) update(now int64) {
|
|||||||
l.unlock()
|
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) {
|
func (l *gcCPULimiterState) updateLocked(now int64) {
|
||||||
lastUpdate := l.lastUpdate.Load()
|
lastUpdate := l.lastUpdate.Load()
|
||||||
if now < lastUpdate {
|
if now < lastUpdate {
|
||||||
|
@ -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.
|
// It clears the mark bits in preparation for the next GC round.
|
||||||
// Returns true if the span was returned to heap.
|
// Returns true if the span was returned to heap.
|
||||||
// If preserve=true, don't return it to heap nor relink in mcentral lists;
|
// If preserve=true, don't return it to heap nor relink in mcentral lists;
|
||||||
|
@ -246,7 +246,7 @@ func newosproc(mp *m) {
|
|||||||
// It is written in assembly, uses ABI0, is marked TOPFRAME, and calls netbsdMstart0.
|
// It is written in assembly, uses ABI0, is marked TOPFRAME, and calls netbsdMstart0.
|
||||||
func netbsdMstart()
|
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
|
// created thread. On NetBSD, a new thread inherits the signal stack
|
||||||
// of the creating thread. That confuses minit, so we remove that
|
// of the creating thread. That confuses minit, so we remove that
|
||||||
// signal stack here before calling the regular mstart. It's a bit
|
// signal stack here before calling the regular mstart. It's a bit
|
||||||
|
Loading…
Reference in New Issue
Block a user