Re:Go 1.6 Release Candidate 1 is released
by timtadh on Wednesday January 27, 2016 @11:21PM
(#10986245)
Another thread could 1) write to the same key. 2) cause a table expansion (or a shrink) which rehashes the whole table (in most implementations). Either case will cause a difficult to diagnose bug. Use a lock or communicate with channels instead. There may be other subtle things which can get corrupted under concurrent use. The map type in Go has never been implemented in a thread safe fashion so if you try and use it as such you will be in for a bad time.
[ Parent
| on HN ]
There are no comments on this comment yet.