Fix address-space size calculation
PartitionAlloc tries to report out-of-memory failures differently depending on whether it thinks that address-space is exhausted. This change improves that by fixing the calculation of how much address space the process has (usually 4 GiB, not 2 GiB, but variable). Bug: 1159694 Change-Id: Ie5dba8ed55f663cf7edbcb824056042953d28c65 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2606634Reviewed-by:Will Harris <wfh@chromium.org> Reviewed-by:
Bartek Nowierski <bartekn@chromium.org> Commit-Queue: Bruce Dawson <brucedawson@chromium.org> Auto-Submit: Bruce Dawson <brucedawson@chromium.org> Cr-Commit-Position: refs/heads/master@{#840507}
Showing
Please register or sign in to comment