3 ms·
What about iterator invalidation or multiple mutable aliasing in concurrent code
by hctaw 6y ago
What about iterator invalidation or multiple mutable aliasing in concurrent code
- otabdeveloper4 6y agoIterator invalidation is a kind of use-after-free. Mutating aliased objects is, of course, usually the desired outcome and not a bug. It becomes a bug when your program's concurrency logic is not thought through, and there are no easy solutions here.