Searched refs:QuarantineBatch (Results 1 – 5 of 5) sorted by relevance
| /openbsd/src/gnu/llvm/compiler-rt/lib/sanitizer_common/tests/ |
| D | sanitizer_quarantine_test.cpp | 38 while (QuarantineBatch *batch = cache->DequeueBatch()) in DeallocateCache() 44 QuarantineBatch into; in TEST() 46 QuarantineBatch from; in TEST() 54 ASSERT_EQ(into.size, 12UL + sizeof(QuarantineBatch)); in TEST() 58 ASSERT_EQ(from.size, sizeof(QuarantineBatch)); in TEST() 62 for (uptr i = 2; i < QuarantineBatch::kSize; ++i) in TEST() 64 ASSERT_TRUE(into.count + from.count == QuarantineBatch::kSize); in TEST() 68 ASSERT_TRUE(into.count == QuarantineBatch::kSize); in TEST() 88 ASSERT_EQ(kBlockSize + sizeof(QuarantineBatch), cache.Size()); in TEST() 94 ASSERT_EQ(kBlockSize + sizeof(QuarantineBatch), cache.Size()); in TEST() [all …]
|
| /openbsd/src/gnu/llvm/compiler-rt/lib/scudo/standalone/ |
| D | quarantine.h | 18 struct QuarantineBatch { struct 22 QuarantineBatch *Next; argument 30 this->Size = Size + sizeof(QuarantineBatch); // Account for the Batch Size. in init() argument 34 uptr getQuarantinedSize() const { return Size - sizeof(QuarantineBatch); } in getQuarantinedSize() argument 42 bool canMerge(const QuarantineBatch *const From) const { in canMerge() argument 46 void merge(QuarantineBatch *const From) { in merge() argument 48 DCHECK_GE(Size, sizeof(QuarantineBatch)); in merge() 56 From->Size = sizeof(QuarantineBatch); in merge() 62 static_assert(sizeof(QuarantineBatch) <= (1U << 13), ""); // 8Kb. argument 72 uptr getOverheadSize() const { return List.size() * sizeof(QuarantineBatch); } in getOverheadSize() [all …]
|
| D | combined.h | 85 sizeof(QuarantineBatch) + Chunk::getHeaderSize()); in allocate() 95 Header.SizeOrUnusedBytes = sizeof(QuarantineBatch); in allocate() 103 reinterpret_cast<uptr>(Ptr) + sizeof(QuarantineBatch)); in allocate() 110 sizeof(QuarantineBatch) + Chunk::getHeaderSize()); in deallocate() 118 DCHECK_EQ(Header.SizeOrUnusedBytes, sizeof(QuarantineBatch)); in deallocate()
|
| /openbsd/src/gnu/llvm/compiler-rt/lib/sanitizer_common/ |
| D | sanitizer_quarantine.h | 27 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. 185 while (QuarantineBatch *b = c->DequeueBatch()) { in DoRecycle() [all …]
|
| /openbsd/src/gnu/llvm/compiler-rt/lib/scudo/standalone/tests/ |
| D | quarantine_test.cpp | 32 while (scudo::QuarantineBatch *Batch = Cache->dequeueBatch()) in deallocateCache() 38 scudo::QuarantineBatch Into; in TEST() 40 scudo::QuarantineBatch From; in TEST() 48 EXPECT_EQ(Into.Size, 12UL + sizeof(scudo::QuarantineBatch)); in TEST() 52 EXPECT_EQ(From.Size, sizeof(scudo::QuarantineBatch)); in TEST() 56 for (scudo::uptr I = 2; I < scudo::QuarantineBatch::MaxCount; ++I) in TEST() 58 EXPECT_TRUE(Into.Count + From.Count == scudo::QuarantineBatch::MaxCount); in TEST() 62 EXPECT_TRUE(Into.Count == scudo::QuarantineBatch::MaxCount); in TEST() 85 EXPECT_EQ(BlockSize + sizeof(scudo::QuarantineBatch), Cache.getSize()); in TEST() 92 EXPECT_EQ(BlockSize + sizeof(scudo::QuarantineBatch), Cache.getSize()); in TEST() [all …]
|