Comment by amelius
8 hours ago
I suppose that if you create a map in one thread, and then access it from another thread, then that might cause segmentation faults? Because map is a type that is implemented in C.
8 hours ago
I suppose that if you create a map in one thread, and then access it from another thread, then that might cause segmentation faults? Because map is a type that is implemented in C.
Yes, writing to maps isn't threadsafe, hence sync.Map. I learned this the hard way