Lines Matching refs:ptrs
748 void* ptrs[kMaxAllocs] = {}; in TEST() local
752 ptrs[i] = malloc(size); in TEST()
753 ASSERT_TRUE(ptrs[i] != nullptr); in TEST()
756 size_t usable_size = malloc_usable_size(ptrs[i]); in TEST()
766 for (void* ptr : ptrs) { in TEST()
832 void* ptrs[100]; in AndroidVerifyAlignment() local
834 for (size_t i = 0; i < sizeof(ptrs) / sizeof(void*); i++) { in AndroidVerifyAlignment()
835 ptrs[i] = malloc(alloc_size); in AndroidVerifyAlignment()
836 ASSERT_TRUE(ptrs[i] != nullptr); in AndroidVerifyAlignment()
837 ASSERT_EQ(0U, reinterpret_cast<uintptr_t>(ptrs[i]) & mask) in AndroidVerifyAlignment()
839 << alloc_size << " actual ptr " << ptrs[i]; in AndroidVerifyAlignment()
1071 void* ptrs[20]; in GetMaxAllocations() local
1072 for (size_t i = 0; i < sizeof(ptrs) / sizeof(void*); i++) { in GetMaxAllocations()
1073 ptrs[i] = malloc(kAllocationSize); in GetMaxAllocations()
1074 if (ptrs[i] == nullptr) { in GetMaxAllocations()
1080 free(ptrs[i]); in GetMaxAllocations()
1087 void* ptrs[20]; in VerifyMaxPointers() local
1089 ptrs[i] = malloc(kAllocationSize); in VerifyMaxPointers()
1090 ASSERT_TRUE(ptrs[i] != nullptr) << "Failed to allocate on iteration " << i; in VerifyMaxPointers()
1096 free(ptrs[i]); in VerifyMaxPointers()