summaryrefslogtreecommitdiff
path: root/libc/malloc_hooks/tests
AgeCommit message (Collapse)Author
2022-04-15Use SKIP_WITH_HWASAN macro from libbase.Florian Mayer
Change-Id: I83681d2191bf4184e52d84d1107d61065927bb24
2022-04-06Skip other_malloc_functions on HWASan.Florian Mayer
Bug: 227801493 Change-Id: I98b0c2d1a9dc450b97d2de5c02c68bcfd38088bf
2022-01-28Silence -Wnon-power-of-two-alignment for a testPirama Arumuga Nainar
Bug: http://b/214080353 The wrong alignment to aligned_alloc() is deliberate. Silence the warning around the test. Test: build with clang-r445002 Change-Id: I73bad7775423c908c2bbe1c550e8ce5aeede129d
2019-09-16Make bionic_malloc.h a platform header.Christopher Ferris
Instead of having platform directories directly include the private header, create a platform header directory and export it. Bug: 130763340 Test: Builds. Change-Id: Ie0f092b3fe077a3de8b90266c0b28bfbc20d0dfa Merged-In: Ie0f092b3fe077a3de8b90266c0b28bfbc20d0dfa (cherry picked from commit 8f582ef2f8a77d953d0e9f33387f592d20f852e2)
2019-04-19Move all leak info functions to android_mallopt.Christopher Ferris
Bug: 130028357 Test: malloc_hooks unit tests. Test: Enable backtrace for mediaserver, run dumpsys media.player -m Test: Enable backtrace for calendar, run am dumpheap -n <PID> <FILE> Change-Id: I6774e28ccd9b3f2310127a5b39ccd15fe696a787 Merged-In: I6774e28ccd9b3f2310127a5b39ccd15fe696a787 (cherry picked from commit 3aadc5e80a5e2cf6b6760ed90d528709223bb449)
2018-02-13Implement malloc hooks.Christopher Ferris
Use the malloc debug framework to implement the malloc debug hooks since it can introduce a performance issue. Also, modify the bionic/tests/utils.h slightly to dump an error message when the exe failed. Bug: 30561479 Test: Ran malloc hook unit tests. Test: Ran malloc debug unit tests. Test: Enabled malloc hooks and ran bionic unit tests and verified no Test: unexpected failures. Test: Enabled malloc debug and malloc hooks and verified malloc debug wins. Test: Enabled malloc debug using env, property, and property with name Test: still works. Change-Id: Ib50046a0493c5c2050cf831befb812310bdcc249