commit | 901acddf15e177e40a4090062121440af309da1b | [log] [tgz] |
---|---|---|
author | Christopher Ferris <cferris@google.com> | Thu May 21 18:39:05 2015 -0700 |
committer | Christopher Ferris <cferris@google.com> | Fri May 22 10:22:14 2015 -0700 |
tree | ae29139e9b6603a35de0ad5e1b3b47032bb5d86a | |
parent | 6732d3751a4ba4b23bd0881c5bd150e65c35c939 [diff] |
Do not cache every readable/executable elf. This wastes a lot of memory to leave all of these elf files mmap'd in. This is especially bad when running on host and mmapping in the huge libartd.so. Read the load base but unmap the elf right away. Bug: 21372357 (cherry picked from commit 6eab3d438400bc9d6fa2203d4d8d970358fe502d) Change-Id: I750d47bda8f718046d7444433c2ff7f7fce9af20