summaryrefslogtreecommitdiff
path: root/libc/malloc_hooks
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2020-09-24 17:17:57 -0700
committerStephen Hines <srhines@google.com>2020-09-24 17:17:57 -0700
commit1c33c4a26333258275cc6724a692d4ca7adc60e4 (patch)
tree8067323dc16001144b5aedef57a674827d292a9e /libc/malloc_hooks
parent0a12075ca48c9bf6fc1a68c0446ac000c07afb42 (diff)
Work around issues with `aligned_alloc()` and -O2.
The latest LLVM update to r399163 has exposed an issue with optimization of `aligned_alloc()` at -O2. Invalid inputs are treated as valid, which results in assertions being hit. This WAR is to make sure that the test keeps running while we fix the issue upstream. Bug: http://b/169206016 Bug: http://b/155835175 Test: atest malloc_hooks_system_tests:malloc_hooks_system_tests.MallocHooksTest#aligned_alloc_hook_error -- --abi x86 Change-Id: I74b290b73826481c62db3a99ac1a690c8a8a8db3
Diffstat (limited to 'libc/malloc_hooks')
-rw-r--r--libc/malloc_hooks/Android.bp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libc/malloc_hooks/Android.bp b/libc/malloc_hooks/Android.bp
index 77b523ec4..487f3fb24 100644
--- a/libc/malloc_hooks/Android.bp
+++ b/libc/malloc_hooks/Android.bp
@@ -70,6 +70,7 @@ cc_test {
cflags: [
"-Wall",
"-Werror",
+ "-O1", // FIXME: http://b/169206016 - issues with aligned_alloc and -O2
],
test_suites: ["general-tests"],
}