3 ms·
just to make sure : do we agree here that the race condition actually happen on the « isUniquelyReferenced » check followed by the write ? So the race isn’t be
by bsaul 8y ago
just to make sure : do we agree here that the race condition actually happen on the « isUniquelyReferenced » check followed by the write ?
So the race isn’t because COW over struct in swift isn’t atomic ( it is), but because he uses a class and tries to build cow over it ( but does so improperly) ?