Commit 50dad7aa authored by Stephan Herhut's avatar Stephan Herhut Committed by Commit Bot

Only print warning if adjusting address space fails.

The original code has the condition for logging inversed.

Change-Id: I3358cf18c42c2ab914a9895c6ed9de6a13fa50f1
Reviewed-on: https://chromium-review.googlesource.com/1009946Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Reviewed-by: default avatarBill Budge <bbudge@chromium.org>
Reviewed-by: default avatarAlbert J. Wong <ajwong@chromium.org>
Commit-Queue: Stephan Herhut <herhut@chromium.org>
Cr-Commit-Position: refs/heads/master@{#553963}
parent 85aaee32
......@@ -119,8 +119,8 @@ void* AllocPages(void* address,
if (length >= kMinimumGuardedMemorySize) {
CHECK_EQ(PageInaccessible, accessibility);
CHECK(!commit);
if (AdjustAddressSpaceLimit(base::checked_cast<int64_t>(length))) {
DLOG(WARNING) << "Could not address space by " << length;
if (!AdjustAddressSpaceLimit(base::checked_cast<int64_t>(length))) {
DLOG(WARNING) << "Could not adjust address space by " << length;
// Fall through. Try the allocation, since we may have a reserve.
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment