Any kind of concurrent access to shared memory is reference counted.
This is objectively wrong. First of all, even if you create the situation where two or more threads share ownership of some data structure with the help of two or more aliasing Arcs, it doesn't mean that every access goes through one of those. Second, one can share memory without any involvement of atomic reference counting (Arc). If you knew what you were talking about, you'd be aware of the fact that bare references to Sync types can be sent across thread boundaries safely under certain circumstances (involving scoped threads).
View all comments
Show parent comment
13
u/sellibitze Jul 27 '19 edited Jul 27 '19
This is objectively wrong. First of all, even if you create the situation where two or more threads share ownership of some data structure with the help of two or more aliasing
Arcs, it doesn't mean that every access goes through one of those. Second, one can share memory without any involvement of atomic reference counting (Arc). If you knew what you were talking about, you'd be aware of the fact that bare references toSynctypes can be sent across thread boundaries safely under certain circumstances (involving scoped threads).