]> Cypherpunks.ru repositories - gostls13.git/commitdiff
runtime: remove go119ConcurrentGoroutineProfile flag
authorKeith Randall <khr@golang.org>
Thu, 26 Jan 2023 22:49:03 +0000 (14:49 -0800)
committerKeith Randall <khr@golang.org>
Sat, 28 Jan 2023 19:56:15 +0000 (19:56 +0000)
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>
src/runtime/mprof.go

index 24f88897d771ec13c2f7de9360be35e85e5120b3..cf9e03298162b1071b006656378a114fbd305f32 100644 (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 {