mirror of https://go.googlesource.com/go
b431277da8
Prior to this change, there was a possibility that the call of ForgetUnshared at line 134 could acquire the lock first. Then, after ForgetUnshared released the lock, the doCall function could acquire it and complete its call. This change prevents this situation by ensuring that ForgetUnshared at line 134 only executes after doCall has finished executing and released the lock. Change-Id: I45cd4040e40ed52ca8e1b3863092886668dfd521 Reviewed-on: https://go-review.googlesource.com/c/go/+/479499 Reviewed-by: Matthew Dempsky <mdempsky@google.com> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Ian Lance Taylor <iant@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com> |
||
---|---|---|
.. | ||
singleflight.go | ||
singleflight_test.go |