Lines Matching refs:Allocate

240         char *x = (char*)cache.Allocate(a, class_id0);  in TestSizeClassAllocator()
375 void *x = cache.Allocate(a, 1 + i % (Allocator::kNumClasses - 1)); in SizeClassAllocatorMetadataStress()
435 void *x = cache.Allocate(a, max_size_class); in SizeClassAllocatorGetBlockBeginStress()
567 void *x = a.Allocate(&stats, 1 << 20, 1); in TEST()
612 allocated[i] = (char *)a.Allocate(&stats, size, 1); in TEST()
627 char *x = (char *)a.Allocate(&stats, size, 1); in TEST()
658 char *p = allocated[i] = (char *)a.Allocate(&stats, size, alignment); in TEST()
672 char *p = (char *)a.Allocate(&stats, page_size, 1); in TEST()
690 EXPECT_EQ(a->Allocate(&cache, -1, 1), (void*)0); in TestCombinedAllocator()
691 EXPECT_EQ(a->Allocate(&cache, -1, 1024), (void*)0); in TestCombinedAllocator()
692 EXPECT_EQ(a->Allocate(&cache, (uptr)-1 - 1024, 1), (void*)0); in TestCombinedAllocator()
693 EXPECT_EQ(a->Allocate(&cache, (uptr)-1 - 1024, 1024), (void*)0); in TestCombinedAllocator()
694 EXPECT_EQ(a->Allocate(&cache, (uptr)-1 - 1023, 1024), (void*)0); in TestCombinedAllocator()
695 EXPECT_EQ(a->Allocate(&cache, -1, 1), (void*)0); in TestCombinedAllocator()
705 void *x = a->Allocate(&cache, size, 1); in TestCombinedAllocator()
794 allocated[i] = cache.Allocate(a, class_id); in TestSizeClassAllocatorLocalCache()
850 static_allocator_cache.Allocate(a, 10); in AllocatorLeakTestWorker()
899 main_cache.Allocate(&allocator, class_id)); in TEST()
981 void *x = cache.Allocate(a, class_id0); in TestSizeClassAllocatorIteration()
1035 allocated[i] = (char *)a.Allocate(&stats, size, 1); in TEST()
1063 allocated[i] = (char *)a.Allocate(&stats, size, 1); in TEST()
1123 EXPECT_NE(cache.Allocate(a, kClassID), nullptr); in TEST()
1124 EXPECT_NE(cache.Allocate(a, kClassID), nullptr); in TEST()
1125 EXPECT_EQ(cache.Allocate(a, kClassID), nullptr); in TEST()
1132 p[i] = (char*)cache.Allocate(a, Class2); in TEST()
1138 EXPECT_EQ(cache.Allocate(a, Class2), nullptr); in TEST()
1421 char *ptr1 = (char *)allocator.Allocate(GetPageSizeCached() + 16); in TEST()
1422 char *ptr2 = (char *)allocator.Allocate(16); in TEST()