mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: comment that some linknames are used by runtime/trace
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>
This commit is contained in:
parent
644905891f
commit
96a6e147b2
2 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue