aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/debugcall.go
diff options
context:
space:
mode:
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)