Lines Matching refs:allocated_blocks
92 static std::map<void*, AvbAllocatedBlock> allocated_blocks; variable
99 allocated_blocks[ptr] = block; in avb_malloc_()
104 auto block_it = allocated_blocks.find(ptr); in avb_free()
105 if (block_it == allocated_blocks.end()) { in avb_free()
109 allocated_blocks.erase(block_it); in avb_free()
122 allocated_blocks.clear(); in testing_memory_reset()
126 if (allocated_blocks.size() == 0) { in testing_memory_all_freed()
131 for (const auto& block_it : allocated_blocks) { in testing_memory_all_freed()
137 allocated_blocks.size()); in testing_memory_all_freed()
139 for (const auto& block_it : allocated_blocks) { in testing_memory_all_freed()
143 allocated_blocks.size(), in testing_memory_all_freed()