summaryrefslogtreecommitdiff
path: root/compiler/optimizing/graph_visualizer.cc
diff options
context:
space:
mode:
authorArtem Udovichenko <artem.u@samsung.com>2016-09-09 14:02:25 +0300
committerArtem Udovichenko <artem.u@samsung.com>2016-10-25 18:34:12 +0300
commitb3ac45b55a09741a951b3c93769d708970d23250 (patch)
tree0d5df4025274f1b146a6a077eb21c2c0671e37c6 /compiler/optimizing/graph_visualizer.cc
parent5b6fbd02f03fd41829c7dd4bfce97a62346be854 (diff)
Reduce number of physical pages used for DexCache's arrays
This commit reduces the amount of physical pages allocated for the .bss section of an application's oat file. Many of elements in the application's DexCache arrays are empty. But during coping content of the DexCaches arrays from the app's art file into the .bss section all pages become dirty. The commit fixes that by copying non null elements only. So pages in the .bss section that contains zeroes remains untouched. This approach allows to save 209Kb of memory after one minute of GMaps use. This number is the difference between the size of .bss section and the Rss value from the /proc/<pid>/smaps file. Test: run test-art-host Change-Id: I3d7bed0805b95b5f344303581274ca8e8e69940e
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions