3 ms·
Couldn't the old object only ever get deallocated after the new one is allocated?
by duckerude 6y ago
Couldn't the old object only ever get deallocated after the new one is allocated?
- mark-r 6y agoI was about to say that. The old buffer has to be copied to the new buffer, so a naive implementation couldn't possibly allocate them both at the same address.