commit | 24c51bc6acb53bead3a6b5949f260a6641aa902b | [log] [tgz] |
---|---|---|
author | Leonid Kaplan <[email protected]> | Tue Sep 04 13:23:16 2018 |
committer | Commit Bot <[email protected]> | Tue Sep 04 13:23:16 2018 |
tree | 7aa57b9db763d6aaf8c47813e794571a3cc26fbb | |
parent | 30cfcbcf45f2fed4446e5cc477884f2c1b7905d2 [diff] |
Fix possible shutdown leak in SerialWorker SerialWorker instances could leak when the original task runner is shutting down and no longer accepting tasks. This is because of the implementation of ~PostTaskAndReplyRelay, which attempts to destroy its own instance by DeleteSoon, which is also not accepted by the task runner. This behavior produces warnings in ASAN builds, for example when an instance of DnsConfigServicePosix::HostsReader is destroyed in services_unittests.NetworkContextTest. BUG=879152 Change-Id: I48df8e3171975ff6f11fe0676e456f8e8b756ec9 Reviewed-on: https://chromium-review.googlesource.com/1193344 Reviewed-by: Bence Béky <[email protected]> Commit-Queue: Bence Béky <[email protected]> Cr-Commit-Position: refs/heads/master@{#588499}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .