• Home
  • Raw
  • Download

Lines Matching refs:fBlock

72     return br.fBlock->ptr(br.fAlignedOffset);  in alloc_byte()
109 uintptr_t pt = reinterpret_cast<uintptr_t>(br.fBlock->ptr(br.fAlignedOffset)); in DEF_TEST()
118 REPORTER_ASSERT(r, pool->currentBlock() == br.fBlock); in DEF_TEST()
123 reinterpret_cast<uintptr_t>(prevBR->fBlock->ptr(prevBR->fEnd - 1)); in DEF_TEST()
129 std::memset(br.fBlock->ptr(br.fAlignedOffset), 0xFF, br.fEnd - br.fAlignedOffset); in DEF_TEST()
188 REPORTER_ASSERT(r, p.fBlock->avail<4>() > 16); in DEF_TEST()
189 REPORTER_ASSERT(r, p.fBlock->resize(p.fStart, p.fEnd, 16)); in DEF_TEST()
192 std::memset(p.fBlock->ptr(p.fAlignedOffset), 0x11, p.fEnd - p.fAlignedOffset); in DEF_TEST()
196 REPORTER_ASSERT(r, reinterpret_cast<uintptr_t>(pNext.fBlock->ptr(pNext.fAlignedOffset)) - in DEF_TEST()
197 reinterpret_cast<uintptr_t>(pNext.fBlock->ptr(p.fAlignedOffset)) == 32); in DEF_TEST()
198 REPORTER_ASSERT(r, p.fBlock == pNext.fBlock); in DEF_TEST()
199 REPORTER_ASSERT(r, !p.fBlock->resize(p.fStart, p.fEnd, 48)); in DEF_TEST()
202 REPORTER_ASSERT(r, p.fBlock->release(pNext.fStart, pNext.fEnd)); in DEF_TEST()
203 int fillBlock = p.fBlock->avail<4>(); in DEF_TEST()
204 REPORTER_ASSERT(r, p.fBlock->resize(p.fStart, p.fEnd, fillBlock)); in DEF_TEST()
207 std::memset(p.fBlock->ptr(p.fAlignedOffset), 0x22, p.fEnd - p.fAlignedOffset); in DEF_TEST()
210 REPORTER_ASSERT(r, p.fBlock->avail<4>() < fillBlock); in DEF_TEST()
211 REPORTER_ASSERT(r, !p.fBlock->resize(p.fStart, p.fEnd, fillBlock)); in DEF_TEST()
215 REPORTER_ASSERT(r, p.fBlock->resize(p.fStart, p.fEnd, shrinkTo32)); in DEF_TEST()
219 std::memset(p.fBlock->ptr(p.fAlignedOffset), 0x33, p.fEnd - p.fAlignedOffset); in DEF_TEST()
222 REPORTER_ASSERT(r, reinterpret_cast<uintptr_t>(pNext.fBlock->ptr(pNext.fAlignedOffset)) - in DEF_TEST()
223 reinterpret_cast<uintptr_t>(pNext.fBlock->ptr(p.fAlignedOffset)) == 32); in DEF_TEST()
230 REPORTER_ASSERT(r, !pNext.fBlock->resize(pNext.fStart, pNext.fEnd, shrinkTo0 - 1)); in DEF_TEST()
232 REPORTER_ASSERT(r, pNext.fBlock->resize(pNext.fStart, pNext.fEnd, shrinkTo0)); in DEF_TEST()
249 REPORTER_ASSERT(r, !p2.fBlock->release(p2.fStart, p2.fEnd)); in DEF_TEST()
255 REPORTER_ASSERT(r, p5.fBlock->release(p5.fStart, p5.fEnd)); in DEF_TEST()
256 REPORTER_ASSERT(r, p4.fBlock->release(p4.fStart, p4.fEnd)); in DEF_TEST()
257 REPORTER_ASSERT(r, p2.fBlock->release(p2.fStart, p3.fEnd)); in DEF_TEST()
261 REPORTER_ASSERT(r, !p.fBlock->release(p.fStart, p.fEnd - 16)); in DEF_TEST()
262 REPORTER_ASSERT(r, !p.fBlock->release(p.fStart, p.fEnd + 16)); in DEF_TEST()
263 REPORTER_ASSERT(r, p.fBlock->release(p.fStart, p.fEnd)); in DEF_TEST()
283 REPORTER_ASSERT(r, br.fBlock->release(br.fStart, br.fEnd)); in DEF_TEST()
573 TestMeta* meta = static_cast<TestMeta*>(p1.fBlock->ptr(p1.fAlignedOffset - sizeof(TestMeta))); in DEF_TEST()
576 REPORTER_ASSERT(r, reinterpret_cast<uintptr_t>(p1.fBlock->ptr(p1.fAlignedOffset)) % 16 == 0); in DEF_TEST()
588 p2.fBlock->ptr(p2.fAlignedOffset - sizeof(TestMetaBig))); in DEF_TEST()
591 REPORTER_ASSERT(r, reinterpret_cast<uintptr_t>(p2.fBlock->ptr(p2.fAlignedOffset)) % 16 == 0); in DEF_TEST()
624 void* userPtr = br.fBlock->ptr(br.fAlignedOffset); in run_owning_block_test()
625 void* metaPtr = br.fBlock->ptr(br.fAlignedOffset - Padding); in run_owning_block_test()
628 REPORTER_ASSERT(r, block == br.fBlock); in run_owning_block_test()
631 REPORTER_ASSERT(r, block == br.fBlock); in run_owning_block_test()
634 REPORTER_ASSERT(r, block == br.fBlock); in run_owning_block_test()