diff options
author | Christopher Ferris <cferris@google.com> | 2016-11-29 14:56:41 -0800 |
---|---|---|
committer | Christopher Ferris <cferris@google.com> | 2016-11-29 14:56:41 -0800 |
commit | d76e46df58ad7a879fa581b89819aaebf2f8c4b3 (patch) | |
tree | 7bc932f67d32d02fbc37ca51d82b43ee0f62d7dc /include | |
parent | f9004022ba4ec0a7d5baa0d019fb278c7ec6c52e (diff) | |
download | jemalloc-d76e46df58ad7a879fa581b89819aaebf2f8c4b3.tar.gz |
Do not allow jemalloc to use syscall.
Test: Built angler and verified the jemalloc syscalls are gone.
Test: Ran bionic unit tests and jemalloc unit tests on angler.
Change-Id: I55d12bdfc84832d031e875244c20cc63820c0c5c
Diffstat (limited to 'include')
-rw-r--r-- | include/jemalloc/internal/jemalloc_internal_defs.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/jemalloc/internal/jemalloc_internal_defs.h b/include/jemalloc/internal/jemalloc_internal_defs.h index 7512644..2c1d8be 100644 --- a/include/jemalloc/internal/jemalloc_internal_defs.h +++ b/include/jemalloc/internal/jemalloc_internal_defs.h @@ -77,7 +77,8 @@ /* #undef JEMALLOC_OSSPIN */ /* Defined if syscall(2) is available. */ -#define JEMALLOC_HAVE_SYSCALL +/* Syscalls are available in Android, but avoid them for security reasons. */ +/* #undef JEMALLOC_HAVE_SYSCALL */ /* * Defined if secure_getenv(3) is available. |