Lines Matching refs:allocated

227   std::vector<void *> allocated;  in TestSizeClassAllocator()  local
244 allocated.push_back(x); in TestSizeClassAllocator()
259 for (uptr i = 0; i < allocated.size(); i++) { in TestSizeClassAllocator()
260 void *x = allocated[i]; in TestSizeClassAllocator()
266 allocated.clear(); in TestSizeClassAllocator()
372 void *allocated[kNumAllocs]; in SizeClassAllocatorMetadataStress() local
376 allocated[i] = x; in SizeClassAllocatorMetadataStress()
382 void *m = a->GetMetaData(allocated[idx]); in SizeClassAllocatorMetadataStress()
386 cache.Deallocate(a, 1 + i % (Allocator::kNumClasses - 1), allocated[i]); in SizeClassAllocatorMetadataStress()
608 char *allocated[kNumAllocs]; in TEST() local
612 allocated[i] = (char *)a.Allocate(&stats, size, 1); in TEST()
613 CHECK(a.PointerIsMine(allocated[i])); in TEST()
618 char *p = allocated[i]; in TEST()
631 allocated[i] = x; in TEST()
634 char *p = allocated[i % kNumAllocs]; in TEST()
642 char *p = allocated[idx]; in TEST()
658 char *p = allocated[i] = (char *)a.Allocate(&stats, size, alignment); in TEST()
662 CHECK_EQ(0, (uptr)allocated[i] % alignment); in TEST()
666 a.Deallocate(&stats, allocated[i]); in TEST()
700 std::vector<void*> allocated; in TestCombinedAllocator() local
709 allocated.push_back(x); in TestCombinedAllocator()
712 std::shuffle(allocated.begin(), allocated.end(), r); in TestCombinedAllocator()
725 for (const auto &allocated_ptr : allocated) { in TestCombinedAllocator()
731 void *x = allocated[i]; in TestCombinedAllocator()
738 allocated.clear(); in TestCombinedAllocator()
792 void *allocated[kNumAllocs]; in TestSizeClassAllocatorLocalCache() local
794 allocated[i] = cache.Allocate(a, class_id); in TestSizeClassAllocatorLocalCache()
797 cache.Deallocate(a, class_id, allocated[i]); in TestSizeClassAllocatorLocalCache()
970 std::vector<void *> allocated; in TestSizeClassAllocatorIteration() local
982 allocated.push_back(x); in TestSizeClassAllocatorIteration()
991 for (uptr i = 0; i < allocated.size(); i++) { in TestSizeClassAllocatorIteration()
993 ASSERT_NE(reported_chunks.find(reinterpret_cast<uptr>(allocated[i])), in TestSizeClassAllocatorIteration()
1031 char *allocated[kNumAllocs]; in TEST() local
1035 allocated[i] = (char *)a.Allocate(&stats, size, 1); in TEST()
1044 ASSERT_NE(reported_chunks.find(reinterpret_cast<uptr>(allocated[i])), in TEST()
1048 a.Deallocate(&stats, allocated[i]); in TEST()
1059 char *allocated[kNumAllocs]; in TEST() local
1063 allocated[i] = (char *)a.Allocate(&stats, size, 1); in TEST()
1069 char *p1 = allocated[i % kNumAllocs]; in TEST()
1085 a.Deallocate(&stats, allocated[i]); in TEST()