From 469afbcc468115153b7ce3462619197aeadd87ad Mon Sep 17 00:00:00 2001 From: Keith Randall Date: Thu, 26 Jan 2023 14:49:03 -0800 Subject: [PATCH] runtime: remove go119ConcurrentGoroutineProfile flag Change-Id: If7a248374dcb2c276d2d85a4863eb2ed1bc246a4 Reviewed-on: https://go-review.googlesource.com/c/go/+/463226 Run-TryBot: Keith Randall Auto-Submit: Keith Randall Reviewed-by: Dmitri Shuralyov TryBot-Result: Gopher Robot Reviewed-by: Keith Randall Reviewed-by: Rhys Hiltner --- src/runtime/mprof.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/runtime/mprof.go b/src/runtime/mprof.go index 24f88897d7..cf9e032981 100644 --- a/src/runtime/mprof.go +++ b/src/runtime/mprof.go @@ -844,18 +844,13 @@ func runtime_goroutineProfileWithLabels(p []StackRecord, labels []unsafe.Pointer return goroutineProfileWithLabels(p, labels) } -const go119ConcurrentGoroutineProfile = true - // labels may be nil. If labels is non-nil, it must have the same length as p. func goroutineProfileWithLabels(p []StackRecord, labels []unsafe.Pointer) (n int, ok bool) { if labels != nil && len(labels) != len(p) { labels = nil } - if go119ConcurrentGoroutineProfile { - return goroutineProfileWithLabelsConcurrent(p, labels) - } - return goroutineProfileWithLabelsSync(p, labels) + return goroutineProfileWithLabelsConcurrent(p, labels) } var goroutineProfile = struct {