aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/debugcall.go
diff options
context:
space:
mode:
authorMichael Anthony Knyszek <mknyszek@google.com>2023-05-09 19:37:24 +0000
committerGopher Robot <gobot@golang.org>2023-05-11 21:27:08 +0000
commit8992bb19ad625b42ce3d94f99d3c3a5a07b64e4c (patch)
tree54a428514171fd198fc93256a789472ad0da5c04 /src/runtime/debugcall.go
parent7484dd30fd91829f995eed35eb72b90de75c959a (diff)
downloadgo-8992bb19ad625b42ce3d94f99d3c3a5a07b64e4c.tar.xz
runtime: replace trace.enabled with traceEnabled
[git-generate] cd src/runtime grep -l 'trace\.enabled' *.go | grep -v "trace.go" | xargs sed -i 's/trace\.enabled/traceEnabled()/g' Change-Id: I14c7821c1134690b18c8abc0edd27abcdabcad72 Reviewed-on: https://go-review.googlesource.com/c/go/+/494181 Run-TryBot: Michael Knyszek <mknyszek@google.com> Auto-Submit: Michael Knyszek <mknyszek@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Michael Pratt <mpratt@google.com>
Diffstat (limited to 'src/runtime/debugcall.go')
-rw-r--r--src/runtime/debugcall.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/runtime/debugcall.go b/src/runtime/debugcall.go
index fb96b41a3a..b78663715f 100644
--- a/src/runtime/debugcall.go
+++ b/src/runtime/debugcall.go
@@ -161,7 +161,7 @@ func debugCallWrap(dispatch uintptr) {
gp.schedlink = 0
// Park the calling goroutine.
- if trace.enabled {
+ if traceEnabled() {
traceGoPark(traceEvGoBlock, 1)
}
casGToWaiting(gp, _Grunning, waitReasonDebugCall)
@@ -220,7 +220,7 @@ func debugCallWrap1() {
// Switch back to the calling goroutine. At some point
// the scheduler will schedule us again and we'll
// finish exiting.
- if trace.enabled {
+ if traceEnabled() {
traceGoSched()
}
casgstatus(gp, _Grunning, _Grunnable)
@@ -229,7 +229,7 @@ func debugCallWrap1() {
globrunqput(gp)
unlock(&sched.lock)
- if trace.enabled {
+ if traceEnabled() {
traceGoUnpark(callingG, 0)
}
casgstatus(callingG, _Gwaiting, _Grunnable)