aboutsummaryrefslogtreecommitdiff
path: root/compiler-rt/lib/sanitizer_common/sanitizer_chained_origin_depot.h
AgeCommit message (Collapse)AuthorFilesLines
2023-12-23[𝘀𝗽𝗿] initial versionusers/vitalybuka/spr/-initial-versionVitaly Buka1-2/+2
Created using spr 1.3.4
2022-06-16[sanitizer_common] Fix SanitizerCommon.ChainedOriginDepotStats testKristina Bessonova1-0/+1
This test was failing with the following error message if to run the test binary directly, w/o using lit: $ Sanitizer-x86_64-Test --gtest_filter=SanitizerCommon.ChainedOriginDepot* ... [ RUN ] SanitizerCommon.ChainedOriginDepotStats compiler-rt/lib/sanitizer_common/tests/sanitizer_chained_origin_depot_test.cpp:77: Failure Expected: (stats1.allocated) > (stats0.allocated), actual: 196608 vs 196608 [ FAILED ] SanitizerCommon.ChainedOriginDepotStats (867 ms) Since the ChainedOriginDepot* tests are not doing any cleanup, by the time SanitizerCommon.ChainedOriginDepotStats test starts executing the depot may not be empty, so there will be no allocation for the test. This patch introduces ChainedOriginDepot::TestOnlyUnmap() API that deallocates memory when requested. This makes sure underlying TwoLevelMap initiates the expected allocation during the test. Reviewed By: eugenis Differential Revision: https://reviews.llvm.org/D127621
2021-10-08[NFC][sanitizer] Remove includes from headerVitaly Buka1-2/+0
2021-10-08[NFC][sanitizer] Move ChainedOriginDepotNode into cpp fileVitaly Buka1-45/+0
2021-10-08[NFC][sanitizer] Remove sanitizer_persistent_allocator.cppVitaly Buka1-0/+1
We need to make it a template
2021-10-07[NFC][sanitizer] Remove global PersistentAllocatorVitaly Buka1-1/+3
This way is easier to track memory usage and do other incremental refactorings. Differential Revision: https://reviews.llvm.org/D111256
2021-10-05[NFC][sanitizers] Add StackDepotBase Node::hash_typeVitaly Buka1-3/+4
Depends on D111177. Differential Revision: https://reviews.llvm.org/D111182
2021-09-28[NFC][sanitizer] Return StackDepotStats by valueVitaly Buka1-1/+1
Differential Revision: https://reviews.llvm.org/D110644
2021-02-11[sanitizer] Move MSan's chained_origin_depot to sanitizer_commonJianzhou Zhao1-0/+88
https://reviews.llvm.org/D95835 implements origin tracking for DFSan. It reuses the chained origin depot of MSan. This change moves the utility to sanitizer_common to share between MSan and DFSan. Reviewed-by: eugenis, morehouse Differential Revision: https://reviews.llvm.org/D96319