+39
−15
+28
−0
+10
−14
+11
−13
Loading
Node handles moved the element into a buffer of their own and freed the
tree node, so iterators to it dangled after extract()/merge(). Firefox's
TaskController stores set iterators in its tasks and erases through them
after merge(): every content process crashed in __rb_erase and pages
stayed empty.
The handle now owns the unlinked tree node (or, for unordered_map, a heap
copy of the element), insert(node_type&&) links the same node back, and
merge() moves nodes through extract(). Also fixes unordered_map::extract(),
which erased by the already moved-from key.
Co-Authored-By:
Claude Opus 5.5 <noreply@anthropic.com>