platform_bionic/libc
Christopher Ferris e55e5eef8a 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 ccff1b19ef)
2019-10-02 09:45:13 -07:00
..
arch-arm Make tls related header files platform accessible. 2019-09-27 12:14:24 -07:00
arch-arm64 Make tls related header files platform accessible. 2019-09-27 12:14:24 -07:00
arch-common/bionic crtbegin: replace TPREL with R_*_NONE relocs 2019-09-04 20:31:06 +00:00
arch-mips Generate assembler system call stubs via genrule. 2019-04-16 12:31:00 -07:00
arch-mips64/bionic Generate assembler system call stubs via genrule. 2019-04-16 12:31:00 -07:00
arch-x86 Make tls related header files platform accessible. 2019-09-27 12:14:24 -07:00
arch-x86_64 Make tls related header files platform accessible. 2019-09-27 12:14:24 -07:00
async_safe Enable native_bridge_support 2019-05-06 17:13:51 +02:00
bionic Merge "Optimize tolower(3)/toupper(3) from <ctype.h>." 2019-09-30 18:49:51 +00:00
dns Test for ns_parserr() and got a heap-buffer-overflow 2019-08-29 22:18:37 +08:00
include fortify(poll): emit diagnostics regardless of API level 2019-09-30 13:00:36 -07:00
kernel Update to kernel headers v5.2.11. 2019-09-03 15:56:49 -07:00
malloc_debug Make bionic_malloc.h a platform header. 2019-09-16 12:27:33 -07:00
malloc_hooks Make bionic_malloc.h a platform header. 2019-09-16 12:27:33 -07:00
platform/bionic Make tls related header files platform accessible. 2019-09-27 12:14:24 -07:00
private Make tls related header files platform accessible. 2019-09-27 12:14:24 -07:00
seccomp Remove global seccomp list. 2019-09-17 16:37:05 -07:00
stdio Remove the ___ hack. 2019-06-19 15:38:42 -07:00
stdlib Revert fwalk/sfp locking to fix concurrent reads 2019-05-04 00:28:00 -07:00
system_properties Enable native_bridge_support 2019-05-06 17:13:51 +02:00
tools Fix gensyscalls.py to actually use the input argument provided in 2019-09-26 15:02:04 -04:00
tzcode Remove bionic refs to runtime module tz files 2019-06-10 15:09:15 +01:00
upstream-freebsd Add reallocarray(3). 2018-09-26 14:24:18 -07:00
upstream-netbsd Sync with upstream NetBSD. 2019-02-13 14:17:18 -08:00
upstream-openbsd Optimize tolower(3)/toupper(3) from <ctype.h>. 2019-09-27 14:42:39 -07:00
versioner-dependencies Fix clang header dependency for versioner 2019-07-29 15:44:46 -07:00
Android.bp Make it easy to switch between scudo and jemalloc. 2019-10-02 09:45:13 -07:00
fs_config_generator.py
libc.map.txt Add memfd_create(2) and mlock2(2). 2019-08-05 16:31:08 -07:00
libstdc++.map.txt
MODULE_LICENSE_BSD
NOTICE Update notice 2019-07-17 10:56:16 -07:00
SECCOMP_BLACKLIST_APP.TXT Blacklist setregid(32) for apps. 2019-01-22 17:22:54 +01:00
SECCOMP_BLACKLIST_COMMON.TXT
SECCOMP_WHITELIST_APP.TXT Move pipe, open, and getdents from the APP to COMMON seccomp whitelist. 2018-09-11 19:20:34 -04:00
SECCOMP_WHITELIST_COMMON.TXT Add memfd_create(2) and mlock2(2). 2019-08-05 16:31:08 -07:00
SECCOMP_WHITELIST_SYSTEM.TXT
SYSCALLS.TXT Add memfd_create(2) and mlock2(2). 2019-08-05 16:31:08 -07:00
version_script.txt