malloc_debug: Also print stack traces when dumping guarded heap.

This commit is contained in:
Michael Lotz 2015-04-10 16:49:02 +02:00
parent 607ac916de
commit e26a4e7b7a
1 changed files with 4 additions and 1 deletions

View File

@ -1023,8 +1023,11 @@ heap_debug_dump_heaps(bool dumpAreas, bool dumpBins)
if (!dumpBins)
continue;
for (size_t i = 0; i < area->page_count; i++)
for (size_t i = 0; i < area->page_count; i++) {
dump_guarded_heap_page(area->pages[i]);
if ((area->pages[i].flags & GUARDED_HEAP_PAGE_FLAG_FIRST) != 0)
guarded_heap_print_stack_traces(area->pages[i]);
}
}
}