summaryrefslogtreecommitdiff
path: root/tools/cpp-define-generator/make_header_test.py
diff options
context:
space:
mode:
authorJoel Fernandes (Google) <joelaf@google.com>2018-08-17 16:19:19 -0700
committerJoel Fernandes <joelaf@google.com>2018-08-30 10:45:19 -0700
commit92597a8e27274abb25f1b15e0883357381f5a9a5 (patch)
tree7a21eb917c4928d1ae9f528dab62fe1b696223d1 /tools/cpp-define-generator/make_header_test.py
parentfdc3d6782a4c30a54c062fad7a1eff4510304183 (diff)
Replace ashmem in ART with prctl
ART use ashmem just for naming anonymous regions. This is a hack. Further, we are moving away from ashmem in favor of native Linux based shared-memory mechanims for Android. We already have a PRCTL for naming maps in the Android kernels. Lets use that for Android. This also results in removal of ashmem hacks for host-only builds. As a side-effect, the naming of regions change from "/dev/ashmem/<name>" to "[anon:<name>" so we need to update debug code in frameworks. Another CL does that. Note: The user pointers passed to the prctl should be available during maps read time, so we cannot use pointers from the stack. To solve this, we maintain an std::map of unique debug strings when we name the maps. This doesn't result in more memory usage than before, since ashmem is heavier storage-wise due to additional kernel data structure allocations. Performance of 'dumpsys meminfo' gone up by 25% (1s to 0.75s). Slab memory consumption gone down by 3-5MB on boot. Test: Boot and dumpsys meminfo before/after Bug: 111903542 Internal gerrit: ag/4827680 Change-Id: Ia658fce62977f6c69dc4ce89ffdcfe2d9ae22738 Signed-off-by: Joel Fernandes <joelaf@google.com>
Diffstat (limited to 'tools/cpp-define-generator/make_header_test.py')
0 files changed, 0 insertions, 0 deletions