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
refactor(leak): replace init() guard with lazy sync.Once check (#82)
* Initial plan
* refactor(leak): replace init() guard with lazy sync.Once check
The compatibility guard for pprof goroutine profile label format
now runs lazily via sync.Once on the first call to Leaked(), instead
of eagerly in init(). This avoids overhead and potential panics for
programs that import the assertions package but never use
NoGoRoutineLeak.
Signed-off-by: GitHub Copilot <copilot@github.com>
Co-authored-by: fredbi <14262513+fredbi@users.noreply.github.com>
* fix(leak): address linting issues - nolint:gochecknoglobals and wg.Go
- Add //nolint:gochecknoglobals annotation with justification on compatOnce
- Replace wg.Add(1)/go func()/defer wg.Done() with wg.Go() (Go 1.25)
Signed-off-by: GitHub Copilot <copilot@github.com>
Co-authored-by: fredbi <14262513+fredbi@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: fredbi <14262513+fredbi@users.noreply.github.com>
0 commit comments