]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: comment that some linknames are used by runtime/trace
authorCherry Mui <cherryyz@google.com>
Fri, 13 Jun 2025 15:45:23 +0000 (11:45 -0400)
committerCherry Mui <cherryyz@google.com>
Fri, 13 Jun 2025 16:09:17 +0000 (09:09 -0700)
Change-Id: I118d1ee09dfd6fd0075f9e5eeeb54441328bff4d
Reviewed-on: https://go-review.googlesource.com/c/go/+/681495
Reviewed-by: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
src/runtime/trace.go
src/runtime/tracetime.go

index 139cbba6a9f667f4ff020ecd3b8bb95389a9b3e0..7d47ae02a985ee58423d395afed71b5ad38d6590 100644 (file)
@@ -331,7 +331,7 @@ func StopTrace() {
 //
 // traceAdvanceSema must not be held.
 //
-// traceAdvance is called by golang.org/x/exp/trace using linkname.
+// traceAdvance is called by runtime/trace and golang.org/x/exp/trace using linkname.
 //
 //go:linkname traceAdvance
 func traceAdvance(stopTrace bool) {
index 7ffab79badb5399ab61c06306a03dd261b86a76f..8be5c3d1306201b3670e73941419d7245c7d890e 100644 (file)
@@ -51,7 +51,7 @@ type traceTime uint64
 // nosplit because it's called from exitsyscall and various trace writing functions,
 // which are nosplit.
 //
-// traceClockNow is called by golang.org/x/exp/trace using linkname.
+// traceClockNow is called by runtime/trace and golang.org/x/exp/trace using linkname.
 //
 //go:linkname traceClockNow
 //go:nosplit