You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
runtime: GC stack shrinking is O(n²) in the number of goroutines blocked on one sync.Mutex since Go 1.26 [1.27 backport] #82190
@prattmic requested issue #81957 to be considered for backport to the next 1.27 minor release.
@gopherbot Please backport https://go.dev/cl/847406 to Go 1.26 and 1.27. This is a performance regression making stack shrinking O(n^2) on the number of goroutines blocked on the same sync.Mutex. It can make the GC use extremely high CPU.
This regression was introduced in https://go.dev/cl/688335, which introduced GOEXPERIMENT=goroutineleakprofile. This GOEXPERIMENT was disabled by default in 1.26, but the regression is present whether the experiment is enabled or disabled, so 1.26 is affected as well.
Activity