commit | 06af95868491b8ea0f45bb442c97f0f8299ebbb0 | [log] [tgz] |
---|---|---|
author | Wez <wez@chromium.org> | Thu Oct 26 20:57:53 2017 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Oct 26 20:57:53 2017 |
tree | da6bce6db0bb90f97fefcead4a48ff0bbb736baf | |
parent | f065b30cc128489d3ceb63498572ea322ae37f11 [diff] |
Add missing ScopedAllowBlocking to TabManagerDelegateChromeos. TabManagerDelegateChromeos reads the "low memory margin" and "available" memory values from kernel-provided entries in the filesystem, when determining how many processes need to be discarded to ease memory pressure. This causes AssertIOAllowed to fail if discards ever trigger in a build with DCHECKs enabled. In principle the reads from these kernel-provided files should not block so add a ScopedAllowBlocking to work-around the issue. Bug: Change-Id: I472f7fca8a4780e6a6abceb0a3baff541c8e3a9b Reviewed-on: https://chromium-review.googlesource.com/738224 Reviewed-by: Nico Weber <thakis@chromium.org> Reviewed-by: Cheng-Yu Lee <cylee@chromium.org> Commit-Queue: Wez <wez@chromium.org> Cr-Commit-Position: refs/heads/master@{#511951}
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 .