mirror of
https://github.com/golang/go
synced 2024-11-23 04:00:03 -07:00
restore gcount call
This commit is contained in:
parent
1a45dd796c
commit
5ce300bf51
@ -1149,7 +1149,7 @@ func goroutineProfileWithLabelsConcurrent(p []StackRecord, labels []unsafe.Point
|
|||||||
// goroutines that can vary between user and system to ensure that the count
|
// goroutines that can vary between user and system to ensure that the count
|
||||||
// doesn't change during the collection. So, check the finalizer goroutine
|
// doesn't change during the collection. So, check the finalizer goroutine
|
||||||
// in particular.
|
// in particular.
|
||||||
n = runtime_gcount()
|
n = int(gcount())
|
||||||
if fingStatus.Load()&fingRunningFinalizer != 0 {
|
if fingStatus.Load()&fingRunningFinalizer != 0 {
|
||||||
n++
|
n++
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user