summaryrefslogtreecommitdiff
path: root/tests/malloc_iterate_test.cpp
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2019-10-01 17:54:42 -0700
committerChristopher Ferris <cferris@google.com>2019-10-02 09:45:13 -0700
commite55e5eef8aab702b4f336504aee5525ec13f1c26 (patch)
tree97a583b2b7e7b36836d59ac0d8b0bade39aedb82 /tests/malloc_iterate_test.cpp
parenteb9775d36f5dd07454a7afdae84d2e8ae7b02475 (diff)
Make it easy to switch between scudo and jemalloc.
Refactor some of the definitions to separate out all of the native allocator pieces into one place that can be changed easily. This should fix a few static libraries that appear to have accidentally included jemalloc wrapper functions. For example, I verified that libc_nomalloc.a no longer has references to any je_XXX functions. Modify the bionic_libc_platform_headers to not include any libraries. If this isn't updated, soong thinks there are cycles when used by libscudo. To enable scudo, change the libc_native_allocator_defaults defaults from libc_jemalloc5_defaults to libc_scudo_defaults and comment out the defaults: ["libc_scudo_wrapper_defaults"], line for the shared library libc_scudo. To do a final switch to scudo, it will be necessary to clean up some code in other parts of the tree, but this allows a single cl to enable or disable. Bug: 137795072 Test: Builds with jemalloc or scudo with a small change. Test: Ran bionic unit tests. Change-Id: I07bb5432a0d2b2f405f92412e8d04fb9c9e51b31 Merged-In: I07bb5432a0d2b2f405f92412e8d04fb9c9e51b31 (cherry picked from commit ccff1b19effcecf1a0601448340d15abe71d411b)
Diffstat (limited to 'tests/malloc_iterate_test.cpp')
0 files changed, 0 insertions, 0 deletions