You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
go 15.1 introduced a regression, that keys in sync.Map.dirty are not deleted
even in go 1.14, keys in sync.Map.read are not purged immediately, see comments at the end:
(But also bear in mind that sync.Map is intended to solve a specific pattern in the Go standard library. It is surely not optimal for all “concurrent map” use-cases, and if it's not a good fit for your use-case it is totally fine to use something else instead. sync.Map should almost never appear in exported APIs, so in most cases it is easy to swap out for something else.)
The text was updated successfully, but these errors were encountered:
What would you like to be added:
Why is this needed:
golang/go#40999
there are 2 issues:
(But also bear in mind that sync.Map is intended to solve a specific pattern in the Go standard library. It is surely not optimal for all “concurrent map” use-cases, and if it's not a good fit for your use-case it is totally fine to use something else instead. sync.Map should almost never appear in exported APIs, so in most cases it is easy to swap out for something else.)
The text was updated successfully, but these errors were encountered: