diff options
author | Chih-Hung Hsieh <chh@google.com> | 2014-12-08 16:03:50 -0800 |
---|---|---|
committer | Chih-Hung Hsieh <chh@google.com> | 2014-12-09 15:24:18 -0800 |
commit | 9eda39002ea8303855150075b8e1c5495c0aaf38 (patch) | |
tree | 02a7b1721d29411e4cd0c2511ef288012028e59e /include/jemalloc/internal/jemalloc_internal_defs.h | |
parent | 1b55a4c89f7f48dd77e647ebe6b01d2008bfcb73 (diff) | |
download | jemalloc-9eda39002ea8303855150075b8e1c5495c0aaf38.tar.gz |
Use C11 atomic functions when necessary.android-wear-5.0.0_r1lollipop-wear-release
Clang arm64 and mips compilers do not have all gcc predefined macros
and intrinsic functions. When builtin gcc atomic functions are
not available, use C11 standard functions.
BUG: 17046358
Change-Id: I98619647b230d725c81a73dcd3207d429b943e71
Diffstat (limited to 'include/jemalloc/internal/jemalloc_internal_defs.h')
-rw-r--r-- | include/jemalloc/internal/jemalloc_internal_defs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/jemalloc/internal/jemalloc_internal_defs.h b/include/jemalloc/internal/jemalloc_internal_defs.h index 7733a5e..274e8d1 100644 --- a/include/jemalloc/internal/jemalloc_internal_defs.h +++ b/include/jemalloc/internal/jemalloc_internal_defs.h @@ -27,6 +27,9 @@ #define CPU_SPINWAIT #endif +/* Defined if C11 atomics are available. */ +#define JEMALLOC_C11ATOMICS + /* Defined if the equivalent of FreeBSD's atomic(9) functions are available. */ /* #undef JEMALLOC_ATOMIC9 */ |