jemalloc: apply recommended optimizations
The Jemalloc project suggests using
-O3 and -funroll-loops for optimization.
This commit enables these flags by default
in order to improve the performance.
Issue: FP2N-104
Change-Id: Ibb8305be459db2e670e335ab6eac333855654379
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
(cherry picked from commit https://github.com/AOSP-CAF/platform_external_jemalloc@8ffa56bfd592ea9fe807929c1a19db7bdebeb583)
diff --git a/Android.bp b/Android.bp
index a1536e4..342c70d 100644
--- a/Android.bp
+++ b/Android.bp
@@ -17,6 +17,8 @@
common_cflags = [
"-std=gnu11",
"-D_REENTRANT",
+ "-O3",
+ "-funroll-loops",
"-fvisibility=hidden",
"-Wno-unused-parameter",
"-Wno-type-limits",
diff --git a/Android.mk b/Android.mk
index d571cde..184209f 100644
--- a/Android.mk
+++ b/Android.mk
@@ -19,6 +19,8 @@
jemalloc_common_cflags := \
-std=gnu11 \
-D_REENTRANT \
+ -O3 \
+ -funroll-loops \
-fvisibility=hidden \
-Wno-unused-parameter \
-Wno-type-limits \