From 5ce300bf5128f842604d85d5f8749027c8e091c2 Mon Sep 17 00:00:00 2001 From: Jun10ng Date: Sat, 27 Jan 2024 19:48:23 +0800 Subject: [PATCH] restore gcount call --- src/runtime/mprof.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/mprof.go b/src/runtime/mprof.go index fa576f053ab..3287e13163f 100644 --- a/src/runtime/mprof.go +++ b/src/runtime/mprof.go @@ -1149,7 +1149,7 @@ func goroutineProfileWithLabelsConcurrent(p []StackRecord, labels []unsafe.Point // goroutines that can vary between user and system to ensure that the count // doesn't change during the collection. So, check the finalizer goroutine // in particular. - n = runtime_gcount() + n = int(gcount()) if fingStatus.Load()&fingRunningFinalizer != 0 { n++ }