Home
last modified time | relevance | path

Searched refs:QuarantineBatch (Results 1 – 3 of 3) sorted by relevance

/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_quarantine.h27 struct QuarantineBatch { struct
29 QuarantineBatch *next; argument
37 this->size = size + sizeof(QuarantineBatch); // Account for the batch size. in init() argument
42 return size - sizeof(QuarantineBatch); in quarantined_size() argument
51 bool can_merge(const QuarantineBatch* const from) const { in can_merge() argument
55 void merge(QuarantineBatch* const from) { in merge() argument
57 CHECK_GE(size, sizeof(QuarantineBatch)); in merge()
65 from->size = sizeof(QuarantineBatch); in merge()
69 COMPILER_CHECK(sizeof(QuarantineBatch) <= (1 << 13)); // 8Kb.
180 while (QuarantineBatch *b = c->DequeueBatch()) { in DoRecycle()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
H A Dquarantine.h19 struct QuarantineBatch { struct
23 QuarantineBatch *Next; argument
31 this->Size = Size + sizeof(QuarantineBatch); // Account for the Batch Size. in init() argument
35 uptr getQuarantinedSize() const { return Size - sizeof(QuarantineBatch); } in getQuarantinedSize() argument
43 bool canMerge(const QuarantineBatch *const From) const { in canMerge() argument
47 void merge(QuarantineBatch *const From) { in merge() argument
49 DCHECK_GE(Size, sizeof(QuarantineBatch)); in merge()
57 From->Size = sizeof(QuarantineBatch); in merge()
63 static_assert(sizeof(QuarantineBatch) <= (1U << 13), ""); // 8Kb. argument
73 uptr getOverheadSize() const { return List.size() * sizeof(QuarantineBatch); } in getOverheadSize()
[all …]
H A Dcombined.h91 sizeof(QuarantineBatch) + Chunk::getHeaderSize()); in allocate()
101 Header.SizeOrUnusedBytes = sizeof(QuarantineBatch); in allocate()
110 reinterpret_cast<uptr>(Ptr) + sizeof(QuarantineBatch)); in allocate()
117 sizeof(QuarantineBatch) + Chunk::getHeaderSize()); in deallocate()
125 DCHECK_EQ(Header.SizeOrUnusedBytes, sizeof(QuarantineBatch)); in deallocate()