diff options
| author | cuishuang <imcusg@gmail.com> | 2024-08-08 11:05:23 +0800 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2024-08-09 21:16:04 +0000 |
| commit | 820d4458768ccc886b09fa258d7faae4260a0772 (patch) | |
| tree | f04d8c6aad46367e764d096d37c0a5d36ee5e468 /src | |
| parent | 3de175f38348f82f6cc7bfb49c3609e72a5f8f41 (diff) | |
| download | go-820d4458768ccc886b09fa258d7faae4260a0772.tar.xz | |
runtime: make function comments match function names
Change-Id: I5dc9864fbb6f1745be0f7076ac72debd039c8f3e
Reviewed-on: https://go-review.googlesource.com/c/go/+/604178
Reviewed-by: shuang cui <imcusg@gmail.com>
Run-TryBot: shuang cui <imcusg@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/runtime/traceruntime.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/runtime/traceruntime.go b/src/runtime/traceruntime.go index dfbf183de5..3298518978 100644 --- a/src/runtime/traceruntime.go +++ b/src/runtime/traceruntime.go @@ -470,7 +470,7 @@ func (tl traceLocker) GoUnpark(gp *g, skip int) { tl.eventWriter(traceGoRunning, traceProcRunning).event(traceEvGoUnblock, traceArg(gp.goid), gp.trace.nextSeq(tl.gen), tl.stack(skip)) } -// GoCoroswitch emits a GoSwitch event. If destroy is true, the calling goroutine +// GoSwitch emits a GoSwitch event. If destroy is true, the calling goroutine // is simultaneously being destroyed. func (tl traceLocker) GoSwitch(nextg *g, destroy bool) { // Emit a GoWaiting status if necessary for the unblocked goroutine. @@ -630,7 +630,7 @@ func trace_userTaskEnd(id uint64) { traceRelease(tl) } -// trace_userTaskEnd emits a UserRegionBegin or UserRegionEnd event, +// trace_userRegion emits a UserRegionBegin or UserRegionEnd event, // depending on mode (0 == Begin, 1 == End). // // TODO(mknyszek): Just make this two functions. @@ -655,7 +655,7 @@ func trace_userRegion(id, mode uint64, name string) { traceRelease(tl) } -// trace_userTaskEnd emits a UserRegionBegin or UserRegionEnd event. +// trace_userLog emits a UserRegionBegin or UserRegionEnd event. // //go:linkname trace_userLog runtime/trace.userLog func trace_userLog(id uint64, category, message string) { |
