]> Cypherpunks repositories - gostls13.git/commit
sync: release m.mu during (*RWMutexMap).Range callbacks in sync_test
authorBryan C. Mills <bcmills@google.com>
Tue, 9 May 2017 20:12:57 +0000 (16:12 -0400)
committerBryan Mills <bcmills@google.com>
Thu, 20 Jul 2017 18:51:09 +0000 (18:51 +0000)
commit9311af79d5a9670d4ad2c9ab4f94d53563bc82d4
tree7e6218e2f78ed995a5c11c2413638a90d541f89b
parentf5eb8712f802463ec9b2356e3a9d95186163c7ac
sync: release m.mu during (*RWMutexMap).Range callbacks in sync_test

The mainline sync.Map has allowed mutations within Range callbacks
since https://golang.org/cl/37342. The reference implementations need
to do the same.

This change integrates https://go-review.googlesource.com/c/42956/
from x/sync.

Change-Id: I6b58cf874bb31cd4f6fdb8bfa8278888ed617a5a
Reviewed-on: https://go-review.googlesource.com/42957
Run-TryBot: Bryan Mills <bcmills@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/sync/map_bench_test.go
src/sync/map_reference_test.go