summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Edgar Arriaga <edgararriaga@google.com> 2022-04-14 13:20:18 -0700
committer Edgar Arriaga <edgararriaga@google.com> 2022-05-10 11:25:56 -0700
commitaab5fae3f58e390d0464ed7c7ba092ddd06864e1 (patch)
treef70ddbc04a76bb48a983c269f535351e19ec6263 /libs/androidfw/StringPool.cpp
parenta5619e3ff3402f8e17750f4ef1f22be86811c038 (diff)
Resend remaining VMAs on partial compaction due to failure
process_madvise syscall returns the total bytes that were processed however, upon failure it will send the partial amount of bytes that were processed in which case this patch aims to resend the remaining vmas upon partial advise. This way we would effectively process the whole range of vmas rather than skipping the rest of the vmas in batch when process_madvise does a partial advise. The approach for managing vmas was changing to be a consumer approach where bytes are taken off the batch until its reduced to zero to make it more maintainable and avoid recomputing indices already visited. Test: Manual Test: am compact <pid> <uid> full Bug: 205658049 Bug: 231443984 Signed-off-by: Edgar Arriaga <edgararriaga@google.com> Change-Id: I4e5195679d5e9707b9a723e706279124d2cc73b3
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions