[Sampling profiler] Fix ModuleCache module partitioning
std::remove_if may not preserve removed elements if they aren't already at the end of the container. Use std::stable_partition instead to get this behavior and avoid destroying modules prematurely. Bug: 1127466 Change-Id: I90175785e45e6ceea91d04ec332e263eece6f4eb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2406525 Commit-Queue: Mike Wittman <wittman@chromium.org> Auto-Submit: Mike Wittman <wittman@chromium.org> Reviewed-by:Etienne Pierre-Doray <etiennep@chromium.org> Cr-Commit-Position: refs/heads/master@{#806805}
Showing
Please register or sign in to comment