HomeSort by: relevance | last modified time | path
    Searched refs:QuarantineBatch (Results 1 - 2 of 2) sorted by relevancy

  /src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/tests/
sanitizer_quarantine_test.cc 39 while (QuarantineBatch *batch = cache->DequeueBatch())
45 QuarantineBatch into;
47 QuarantineBatch from;
55 ASSERT_EQ(into.size, 12UL + sizeof(QuarantineBatch));
59 ASSERT_EQ(from.size, sizeof(QuarantineBatch));
63 for (uptr i = 2; i < QuarantineBatch::kSize; ++i)
65 ASSERT_TRUE(into.count + from.count == QuarantineBatch::kSize);
69 ASSERT_TRUE(into.count == QuarantineBatch::kSize);
89 ASSERT_EQ(kBlockSize + sizeof(QuarantineBatch), cache.Size());
95 ASSERT_EQ(kBlockSize + sizeof(QuarantineBatch), cache.Size())
    [all...]
  /src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/
sanitizer_quarantine.h 28 struct QuarantineBatch {
30 QuarantineBatch *next;
38 this->size = size + sizeof(QuarantineBatch); // Account for the batch size.
43 return size - sizeof(QuarantineBatch);
52 bool can_merge(const QuarantineBatch* const from) const {
56 void merge(QuarantineBatch* const from) {
58 CHECK_GE(size, sizeof(QuarantineBatch));
66 from->size = sizeof(QuarantineBatch);
70 COMPILER_CHECK(sizeof(QuarantineBatch) <= (1 << 13)); // 8Kb.
185 while (QuarantineBatch *b = c->DequeueBatch())
    [all...]

Completed in 39 milliseconds