Re:Concurrent Memory Deallocation in the Objective-C Runtime
by asveikau on Monday June 08, 2015 @11:46AM
(#9679813)
Yes, you kind of do need the read barrier, otherwise you get exactly the problem I described with the stale cache.
You can't "kinda" have synchronization just as a design for a mutex can't be a "kinda" lock... You may get away with it for a while, but like I said, playing with fire.
You can't "kinda" have synchronization just as a design for a mutex can't be a "kinda" lock... You may get away with it for a while, but like I said, playing with fire.