Replace HeapListHashSet with HeapLinkedHashSet in (autogen) CoreProbeSink
HeapListHashSet is deprecated in favor of HeapLinkedHashSet. HeapLinkedHashSet's invalidate iterators when the container is modified. It happens here that CoreProbeSink::Remove{{class_name}} (which calls HeapLinkedHashSet<{{class_name}}>::erase) can be called while iterating over probe_sink->{{class_name}}s(). Hence, a helper function was added in order to perform the copy. Note that having a helper function rather than the copy code inlined helps with binary size matters. R=jbroman@chromium.org CC=blink-reviews-vendor@chromium.org BUG=614112 Change-Id: I25692b867e0c32dc634b7d7f3a84877218082268 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1584109Reviewed-by:Dmitry Gozman <dgozman@chromium.org> Reviewed-by:
Jeremy Roman <jbroman@chromium.org> Reviewed-by:
Kentaro Hara <haraken@chromium.org> Commit-Queue: Antonio Gomes <tonikitoo@igalia.com> Cr-Commit-Position: refs/heads/master@{#654540}
Showing
Please register or sign in to comment