Lines Matching refs:allocated_blocks
81 static std::map<void*, AvbAllocatedBlock> allocated_blocks; variable
88 allocated_blocks[ptr] = block; in avb_malloc_()
93 auto block_it = allocated_blocks.find(ptr); in avb_free()
94 if (block_it == allocated_blocks.end()) { in avb_free()
98 allocated_blocks.erase(block_it); in avb_free()
105 allocated_blocks.clear(); in testing_memory_reset()
109 if (allocated_blocks.size() == 0) { in testing_memory_all_freed()
114 for (const auto& block_it : allocated_blocks) { in testing_memory_all_freed()
120 allocated_blocks.size()); in testing_memory_all_freed()
122 for (const auto& block_it : allocated_blocks) { in testing_memory_all_freed()
126 allocated_blocks.size(), in testing_memory_all_freed()