Lines Matching refs:Header
45 void FreeTrackData::LogFreeError(const Header* header, const uint8_t* pointer) {
49 for (size_t i = 0; i < header->usable_size; i++) {
54 auto back_iter = backtraces_.find(header);
63 void FreeTrackData::VerifyAndFree(const Header* header) {
64 const void* pointer = debug_->GetPointer(header);
65 if (header->tag != DEBUG_FREE_TAG) {
67 error_log("+++ ALLOCATION %p HAS CORRUPTED HEADER TAG 0x%x AFTER FREE", pointer, header->tag);
71 size_t bytes = header->usable_size;
77 LogFreeError(header, reinterpret_cast<const uint8_t*>(pointer));
85 auto back_iter = backtraces_.find(header);
88 backtraces_.erase(header);
90 g_dispatch->free(header->orig_pointer);
93 void FreeTrackData::Add(const Header* header) {
96 const Header* old_header = list_.back();
106 backtraces_[header] = back_header;
109 list_.push_front(header);
115 for (const auto& header : list_) {
116 VerifyAndFree(header);
121 void FreeTrackData::LogBacktrace(const Header* header) {
122 auto back_iter = backtraces_.find(header);