2 ms·
> So if the owner needs to check the shared ref count every time it changes the count of the non-atomic local count It does not, it only needs to check the sha
by masklinn 5y ago
> So if the owner needs to check the shared ref count every time it changes the count of the non-atomic local count
It does not, it only needs to check the shared refcount when the local count reaches 0, to decide whether it can free the object immediately or whether it should mark it as "unowned".