You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/syncs
Joe Tsai 5b7303817e
syncs: allocate map with Map.WithLock (#13755)
One primary purpose of WithLock is to mutate the underlying map.
However, this can lead to a panic if it happens to be nil.
Thus, always allocate a map before passing it to f.

Updates tailscale/corp#11038

Signed-off-by: Joe Tsai <joetsai@digital-static.net>
2 months ago
..
locked.go all: update copyright and license headers 2 years ago
locked_test.go all: update copyright and license headers 2 years ago
pool.go syncs: add generic Pool (#12759) 5 months ago
pool_test.go syncs: add generic Pool (#12759) 5 months ago
shardedmap.go syncs: add ShardedMap.Mutate 1 year ago
shardedmap_test.go syncs: add ShardedMap.Mutate 1 year ago
syncs.go syncs: allocate map with Map.WithLock (#13755) 2 months ago
syncs_test.go syncs: delete Map.Range, update callers to iterators 2 months ago