Uh oh!
There was an error while loading. Please reload this page.
Fix concurrent iteration and deletion issues in SplObjectStorage - #21443
Fix concurrent iteration and deletion issues in SplObjectStorage#21443ndossche wants to merge 2 commits into
Conversation
Girgias
left a comment
There was a problem hiding this comment.
Seems reasonable. Might have some performance impact but better correct and slow than fast and broken.
ndossche
commented
Mar 22, 2026
It's possible to avoid making it slower by changing how the attach function works: if the caller is expected to make a copy then the overhead is reduced a lot because addAll and removeExcept won't make excessive copies. |
Girgias
commented
Mar 23, 2026
Right, but that would be master level change anyway. |
Reported by @cnitlrt