mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-05 21:57:18 +02:00
Fix CompareAndSwap in the edge-case where the underlying sync.AtomicValue is uninitialized (i.e., Store was never called) and the oldV is the zero value, then perform CompareAndSwap with any(nil). Also, document that T must be comparable. This is a pre-existing restriction. Fixes #16135 Signed-off-by: Joe Tsai <joetsai@digital-static.net> |
||
---|---|---|
.. | ||
locked_test.go | ||
locked.go | ||
pool_test.go | ||
pool.go | ||
shardedint_test.go | ||
shardedint.go | ||
shardedmap_test.go | ||
shardedmap.go | ||
shardvalue_go.go | ||
shardvalue_tailscale.go | ||
shardvalue_test.go | ||
shardvalue.go | ||
syncs_test.go | ||
syncs.go |