diff options
Diffstat (limited to 'src/runtime/trace/annotation.go')
| -rw-r--r-- | src/runtime/trace/annotation.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/runtime/trace/annotation.go b/src/runtime/trace/annotation.go index 9171633b07..d47cb8573c 100644 --- a/src/runtime/trace/annotation.go +++ b/src/runtime/trace/annotation.go @@ -178,8 +178,7 @@ func (r *Region) End() { // The information is advisory only. The tracing status // may have changed by the time this function returns. func IsEnabled() bool { - enabled := atomic.LoadInt32(&tracing.enabled) - return enabled == 1 + return tracing.enabled.Load() } // |
