partalloc: refactor PurgeDiscardableManyPages
This change: 1) Introduces ScopedPageAllocation, to avoid tests needing to remember to free everything they allocate manually; 2) Merges the two bodies of this test into one; 3) Fixes this test on Mac-Arm64 via (2) Bug: 1128436 Change-Id: I158fe54ffb6286168fb2995508bfc06db53aa0ff Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2482342Reviewed-by:Chris Palmer <palmer@chromium.org> Commit-Queue: Elly Fong-Jones <ellyjones@chromium.org> Cr-Commit-Position: refs/heads/master@{#818657}
Showing
Please register or sign in to comment