summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorSilvia Vinyes <silviavinyes@google.com>2020-04-24 14:22:14 +0100
committerSilvia Vinyes <silviavinyes@google.com>2020-05-18 23:14:40 +0000
commitacee2d53b47c4f17981d64fe5b738a0f44f83fcb (patch)
tree08a0dc15284fa2f2b9a9ea56a63d11f678de553e /tools/aapt2/java/JavaClassGenerator.cpp
parent4d61690ba02c775840bc2cdd6aa70ae6330d7bbf (diff)
Fix app compaction bug and add tests.
Fixing b/154317004 App Compaction has a heuristic that ensures the delta in memory between two full compactions is high enough. The map that keeps track of previous compactions is missing some entries. There is a map that keeps entries with previously compacted processes. When trying to compact again one of those processes, the old entry is removed and a new one inserted. When a compaction was not made because of additional conditions / heuristics, the entry is removed but no new entry is inserted again - as no new compaction occurred. We need to make sure old entries are kept if the current compaction is not successful and if it is successful, the map order should reflect it was the most recent insertion. Test: atest CachedAppOptimizerTest Bug: 154317004 Change-Id: I0d4a364928fee162289098c4d4ea0005781bccfd
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions