aboutsummaryrefslogtreecommitdiff
path: root/compiler-rt/lib/sanitizer_common/sanitizer_chained_origin_depot.h
diff options
context:
space:
mode:
authorVitaly Buka <vitalybuka@google.com>2021-10-06 12:37:21 -0700
committerVitaly Buka <vitalybuka@google.com>2021-10-07 13:54:01 -0700
commit8f3e52538d77f42c319b9e40bfae6f45041df195 (patch)
tree47d3c23600b817c05c11224dfe621094608afed2 /compiler-rt/lib/sanitizer_common/sanitizer_chained_origin_depot.h
parent78c5754813f3525ff249780a19198894bd336b78 (diff)
downloadllvm-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.h4
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);