Skip to content
Commit 7961e355 authored by Edgar Arriaga's avatar Edgar Arriaga
Browse files

cleanups and fixes for process_madvise compaction



some fix suggestions that came up on ag/13665789 and some other cleanups
1. Use unique_fd instead of raw int to keep pidfd
2. Return the total compacted bytes on success for compactProcess
3. Fix for error potentially returning a random value
4. Fix truncation that could happen when calling madvise
5. Fail fast after encountering an error instead of silently
advancing to other VMAs when compacting.

Bug: 162993824
Test: Manual
Signed-off-by: default avatarEdgar Arriaga <edgararriaga@google.com>
Change-Id: Ide644f66cf0ebdea570dcb365d6a2400ffb18f4e
parent d0f987ee
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