]> Cypherpunks repositories - gostls13.git/commit
sync: don't call Done when f() panics in WaitGroup.Go
authorJes Cok <xigua67damn@gmail.com>
Mon, 10 Nov 2025 09:28:16 +0000 (09:28 +0000)
committerGopher Robot <gobot@golang.org>
Mon, 10 Nov 2025 15:49:54 +0000 (07:49 -0800)
commit95a0e5adc1e6c27769591de1bfaf520a3265adda
treed6021cd50c174870187c7504739505beb13f3d19
parente8ed85d6c22d9530523315c3048ed0455d205bff
sync: don't call Done when f() panics in WaitGroup.Go

This change is based on
https://github.com/golang/go/issues/76126#issuecomment-3473417226
by adonovan.

Fixes #76126
Fixes #74702

Change-Id: Ie404d8204be8917fa8a7b414bb6d319238267c83
GitHub-Last-Rev: b1beddcd725e9168d4d544a9d0322a5a6d8d65b2
GitHub-Pull-Request: golang/go#76172
Reviewed-on: https://go-review.googlesource.com/c/go/+/717760
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Mateusz Poliwczak <mpoliwczak34@gmail.com>
Auto-Submit: Michael Pratt <mpratt@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
src/sync/waitgroup.go
src/sync/waitgroup_test.go