diff options
author | Vitaly Buka <vitalybuka@google.com> | 2021-10-06 12:37:21 -0700 |
---|---|---|
committer | Vitaly Buka <vitalybuka@google.com> | 2021-10-07 13:54:01 -0700 |
commit | 8f3e52538d77f42c319b9e40bfae6f45041df195 (patch) | |
tree | 47d3c23600b817c05c11224dfe621094608afed2 /compiler-rt/lib/sanitizer_common/sanitizer_chained_origin_depot.h | |
parent | 78c5754813f3525ff249780a19198894bd336b78 (diff) | |
download | llvm-8f3e52538d77f42c319b9e40bfae6f45041df195.zip llvm-8f3e52538d77f42c319b9e40bfae6f45041df195.tar.gz llvm-8f3e52538d77f42c319b9e40bfae6f45041df195.tar.bz2 |
[NFC][sanitizer] Remove global PersistentAllocator
This way is easier to track memory usage and do other
incremental refactorings.
Differential Revision: https://reviews.llvm.org/D111256
Diffstat (limited to 'compiler-rt/lib/sanitizer_common/sanitizer_chained_origin_depot.h')
-rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_chained_origin_depot.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_chained_origin_depot.h b/compiler-rt/lib/sanitizer_common/sanitizer_chained_origin_depot.h index 73a10e1..1d40812 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_chained_origin_depot.h +++ b/compiler-rt/lib/sanitizer_common/sanitizer_chained_origin_depot.h @@ -53,7 +53,9 @@ class ChainedOriginDepot { bool eq(hash_type hash, const args_type &args) const; - static uptr storage_size(const args_type &args); + static uptr allocated(); + + static ChainedOriginDepotNode *allocate(const args_type &args); static hash_type hash(const args_type &args); |