1
0
mirror of https://github.com/golang/go synced 2024-11-17 21:54:49 -07:00

runtime: remove go119ConcurrentGoroutineProfile flag

Change-Id: If7a248374dcb2c276d2d85a4863eb2ed1bc246a4
Reviewed-on: https://go-review.googlesource.com/c/go/+/463226
Run-TryBot: Keith Randall <khr@golang.org>
Auto-Submit: Keith Randall <khr@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Rhys Hiltner <rhys@justin.tv>
This commit is contained in:
Keith Randall 2023-01-26 14:49:03 -08:00
parent 26fd1fba12
commit 469afbcc46

View File

@ -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 {