aboutsummaryrefslogtreecommitdiff
path: root/libc/malloc_hooks/tests
Commit message (Collapse)AuthorAgeFilesLines
* Use SKIP_WITH_HWASAN macro from libbase.Florian Mayer2022-04-151-0/+1
| | | | Change-Id: I83681d2191bf4184e52d84d1107d61065927bb24
* Skip other_malloc_functions on HWASan.Florian Mayer2022-04-061-0/+1
| | | | | Bug: 227801493 Change-Id: I98b0c2d1a9dc450b97d2de5c02c68bcfd38088bf
* Silence -Wnon-power-of-two-alignment for a testPirama Arumuga Nainar2022-01-281-0/+4
| | | | | | | | | | 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
* Make bionic_malloc.h a platform header.Christopher Ferris2019-09-161-1/+1
| | | | | | | | | | | | 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)
* Move all leak info functions to android_mallopt.Christopher Ferris2019-04-191-13/+10
| | | | | | | | | | | 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)
* Implement malloc hooks.Christopher Ferris2018-02-131-0/+412
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