Skip to content
Commit df478c3a authored by Anton Bikineev's avatar Anton Bikineev Committed by Chromium LUCI CQ
Browse files

*Scan: Avoid metadata allocations in SuperPageSnasphot

std::vectors that are currently used inside SuperPageSnasphot cause
committed memory of the metadata partition to grow by 2x. The CL avoids
it by using on-stack arrays. ScanArea::begin/end pointers are packed so
that the array doesn't take up too much space (<1K on 64bit) to minimize
the risk of stack overflow.

Bug: 11297512
Change-Id: Ie5dd1ecc14f5d2cb76233729a1521fd9017ec582
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3015344


Commit-Queue: Anton Bikineev <bikineev@chromium.org>
Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Reviewed-by: default avatarMichael Lippautz <mlippautz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#900960}
parent 11ea255d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment