Lines Matching refs:allocations
34 size_t fail_after_allocations = 0; // fail after this number of allocations in total
54 std::unordered_map<void*, AllocationDetails> allocations;
72 allocations.insert(std::make_pair(aligned_alloc, std::move(detail)));
79 auto elem = allocations.find(pOriginal);
80 if (elem == allocations.end()) return nullptr;
88 allocations.erase(elem);
99 allocations.erase(elem);
105 auto elem = allocations.find(pMemory);
106 if (elem == allocations.end()) return;
107 allocations.erase(elem);
108 assert(allocation_count != 0 && "Cant free when there are no valid allocations");
141 allocations.reserve(3000);