mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
LibJS: Put some more Heap debug logging behind HEAP_DEBUG
This commit is contained in:
parent
e31dac3ba4
commit
1dd71bd68f
Notes:
sideshowbarker
2024-07-19 08:10:22 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/1dd71bd68f8
@ -229,13 +229,17 @@ void Heap::sweep_dead_cells()
|
||||
}
|
||||
|
||||
for (auto* block : empty_blocks) {
|
||||
#ifdef HEAP_DEBUG
|
||||
dbg() << " - Reclaim HeapBlock @ " << block << ": cell_size=" << block->cell_size();
|
||||
#endif
|
||||
m_blocks.remove_first_matching([block](auto& entry) { return entry == block; });
|
||||
}
|
||||
|
||||
#ifdef HEAP_DEBUG
|
||||
for (auto& block : m_blocks) {
|
||||
dbg() << " > Live HeapBlock @ " << block << ": cell_size=" << block->cell_size();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void Heap::did_create_handle(Badge<HandleImpl>, HandleImpl& impl)
|
||||
|
Loading…
Reference in New Issue
Block a user