aboutsummaryrefslogtreecommitdiff
path: root/src/encoding
diff options
context:
space:
mode:
authorKeiichi Hirobe <chalenge.akane@gmail.com>2023-03-28 01:56:29 +0900
committerGopher Robot <gobot@golang.org>2023-03-29 22:21:50 +0000
commitb431277da850b47cd05c5e7697303c0d6fbe2cea (patch)
tree929d69104accfa3e040ffeca54fe7e00b68664f9 /src/encoding
parent7dc10dbf45db5a361e0ace376dedb5578f6a5642 (diff)
downloadgo-b431277da850b47cd05c5e7697303c0d6fbe2cea.tar.xz
internal/singleflight: move Done call in TestForgetUnshared
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>
Diffstat (limited to 'src/encoding')
0 files changed, 0 insertions, 0 deletions