Searched refs:QuarantineBatch (Results 1 – 6 of 6) sorted by relevance
| /llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/tests/ |
| H A 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() 68 ASSERT_TRUE(into.count == QuarantineBatch::kSize); in TEST() 124 const uptr kNumBlocks = QuarantineBatch::kSize - 1; in TEST() 135 sizeof(QuarantineBatch) * 2, cache.Size()); in TEST() 142 sizeof(QuarantineBatch) * 2, cache.Size()); in TEST() [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/scudo/standalone/ |
| H A D | quarantine.h | 18 struct QuarantineBatch { struct 22 QuarantineBatch *Next; 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() 76 QuarantineBatch *B = in enqueue() 93 void enqueueBatch(QuarantineBatch *B) { in enqueueBatch() 98 QuarantineBatch *dequeueBatch() { in dequeueBatch() 101 QuarantineBatch *B = List.front(); in dequeueBatch() 109 QuarantineBatch *Current = List.front(); in mergeBatches() [all …]
|
| H A D | combined.h | 84 sizeof(QuarantineBatch) + Chunk::getHeaderSize()); in allocate() 94 Header.SizeOrUnusedBytes = sizeof(QuarantineBatch); in allocate() 102 reinterpret_cast<uptr>(Ptr) + sizeof(QuarantineBatch)); in allocate() 109 sizeof(QuarantineBatch) + Chunk::getHeaderSize()); in deallocate() 117 DCHECK_EQ(Header.SizeOrUnusedBytes, sizeof(QuarantineBatch)); in deallocate()
|
| /llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_quarantine.h | 27 struct QuarantineBatch { struct 29 QuarantineBatch *next; argument 42 return size - sizeof(QuarantineBatch); in quarantined_size() 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() 224 QuarantineBatch *b = (QuarantineBatch *)cb.Allocate(sizeof(*b)); in Enqueue() 241 void EnqueueBatch(QuarantineBatch *b) { in EnqueueBatch() 246 QuarantineBatch *DequeueBatch() { in DequeueBatch() 249 QuarantineBatch *b = list_.front(); in DequeueBatch() [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/scudo/standalone/tests/ |
| H A 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() 62 EXPECT_TRUE(Into.Count == scudo::QuarantineBatch::MaxCount); in TEST() 110 EXPECT_EQ(BlockSize * 2 + sizeof(scudo::QuarantineBatch) * 2, in TEST() 119 EXPECT_EQ(ToDeallocate.getSize(), sizeof(scudo::QuarantineBatch)); in TEST() 156 scudo::QuarantineBatch::MaxCount * NumBatchesAfterMerge; in TEST() [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/scudo/ |
| H A D | scudo_allocator.cpp | 201 const uptr BatchClassId = SizeClassMap::ClassID(sizeof(QuarantineBatch)); in Allocate() 206 const uptr BatchClassId = SizeClassMap::ClassID(sizeof(QuarantineBatch)); in Deallocate() 211 COMPILER_CHECK(sizeof(QuarantineBatch) < SizeClassMap::kMaxSize);
|