Lines Matching refs:allocated_blocks
85 static std::map<void*, AvbAllocatedBlock> allocated_blocks; variable
92 allocated_blocks[ptr] = block; in avb_malloc_()
97 auto block_it = allocated_blocks.find(ptr); in avb_free()
98 if (block_it == allocated_blocks.end()) { in avb_free()
102 allocated_blocks.erase(block_it); in avb_free()
115 allocated_blocks.clear(); in testing_memory_reset()
119 if (allocated_blocks.size() == 0) { in testing_memory_all_freed()
124 for (const auto& block_it : allocated_blocks) { in testing_memory_all_freed()
130 allocated_blocks.size()); in testing_memory_all_freed()
132 for (const auto& block_it : allocated_blocks) { in testing_memory_all_freed()
136 allocated_blocks.size(), in testing_memory_all_freed()