summaryrefslogtreecommitdiff
path: root/test/ProfileTestMultiDex/Second.java
diff options
context:
space:
mode:
authorIgor Murashkin <iam@google.com>2017-02-07 15:20:54 -0800
committerIgor Murashkin <iam@google.com>2017-02-10 10:33:12 -0800
commit19e5f834501c5e69fbd731038b88c10332cc6bc7 (patch)
tree439e382f697ed114e117d7ae21dc818f17ec8187 /test/ProfileTestMultiDex/Second.java
parente4530079672682ff3900d84c08b666a6a899d973 (diff)
runtime: Mmap uncompressed dex files (in zip) as clean memory
Saves 3MB of RAM (system-wide) in AGSA (search toolbar). Also makes 3MB of RAM clean (previously dirty). ---- classes.dex from different processes will now have their memory shared (as clean) globally. To take advantage of this, the app/service just needs to build their .JARs zipaligned and with classes.dex being stored uncompressed. ----- classes[N].dex within ZIP files will now get memory-mapped as file-backed, clean memory when opening a DexFile. (The zip entry must be at least 4-byte aligned). Compressed DEX files still get extracted first to dirty memory. Test: art/tools/run-test 071-dexfile-map-clean Bug: 27650033 Change-Id: I18efbd392c5980ffe0d983833b6cc581e0237b92
Diffstat (limited to 'test/ProfileTestMultiDex/Second.java')
0 files changed, 0 insertions, 0 deletions