From 78a3968c2c9f2d6e8eb6dc263b4a2517c72d71be Mon Sep 17 00:00:00 2001 From: Michael Anthony Knyszek Date: Thu, 24 Jul 2025 21:38:37 +0000 Subject: runtime/metrics: add metric for current Go-owned thread count Fixes #15490. Change-Id: I6ce9edc46398030ff639e22d4ca4adebccdfe1b7 Reviewed-on: https://go-review.googlesource.com/c/go/+/690399 Auto-Submit: Michael Knyszek LUCI-TryBot-Result: Go LUCI Reviewed-by: Michael Pratt --- src/runtime/proc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/runtime/proc.go') diff --git a/src/runtime/proc.go b/src/runtime/proc.go index 329d1b2624..68647d771f 100644 --- a/src/runtime/proc.go +++ b/src/runtime/proc.go @@ -1007,7 +1007,7 @@ func mcommoninit(mp *m, id int64) { // when it is just in a register or thread-local storage. mp.alllink = allm - // NumCgoCall() and others iterate over allm w/o schedlock, + // NumCgoCall and others iterate over allm w/o schedlock, // so we need to publish it safely. atomicstorep(unsafe.Pointer(&allm), unsafe.Pointer(mp)) unlock(&sched.lock) -- cgit v1.3-6-g1900