diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2022-04-01 20:58:27 +0300 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-04-01 21:24:45 +0100 |
commit | 086969277e74d8ba065bf8145d3aeb0dec0bfee5 (patch) | |
tree | 02b3699a66735ef806d9b46353491f18f8e4e7b4 /Userland/Libraries/LibJS/Heap/Heap.cpp | |
parent | 0376c127f6e98e03607700d0b3f5154b7014b2f8 (diff) | |
download | serenity-086969277e74d8ba065bf8145d3aeb0dec0bfee5.zip |
Everywhere: Run clang-format
Diffstat (limited to 'Userland/Libraries/LibJS/Heap/Heap.cpp')
-rw-r--r-- | Userland/Libraries/LibJS/Heap/Heap.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Userland/Libraries/LibJS/Heap/Heap.cpp b/Userland/Libraries/LibJS/Heap/Heap.cpp index fcc8575af5..ca50bc28d0 100644 --- a/Userland/Libraries/LibJS/Heap/Heap.cpp +++ b/Userland/Libraries/LibJS/Heap/Heap.cpp @@ -156,15 +156,15 @@ __attribute__((no_sanitize("address"))) void Heap::gather_conservative_roots(Has for (auto possible_pointer : possible_pointers) { if (!possible_pointer) continue; - dbgln_if(HEAP_DEBUG, " ? {}", (const void*)possible_pointer); - auto* possible_heap_block = HeapBlock::from_cell(reinterpret_cast<const Cell*>(possible_pointer)); + dbgln_if(HEAP_DEBUG, " ? {}", (void const*)possible_pointer); + auto* possible_heap_block = HeapBlock::from_cell(reinterpret_cast<Cell const*>(possible_pointer)); if (all_live_heap_blocks.contains(possible_heap_block)) { if (auto* cell = possible_heap_block->cell_from_possible_pointer(possible_pointer)) { if (cell->state() == Cell::State::Live) { - dbgln_if(HEAP_DEBUG, " ?-> {}", (const void*)cell); + dbgln_if(HEAP_DEBUG, " ?-> {}", (void const*)cell); roots.set(cell); } else { - dbgln_if(HEAP_DEBUG, " #-> {}", (const void*)cell); + dbgln_if(HEAP_DEBUG, " #-> {}", (void const*)cell); } } } @@ -186,7 +186,7 @@ public: } }; -void Heap::mark_live_cells(const HashTable<Cell*>& roots) +void Heap::mark_live_cells(HashTable<Cell*> const& roots) { dbgln_if(HEAP_DEBUG, "mark_live_cells:"); @@ -200,7 +200,7 @@ void Heap::mark_live_cells(const HashTable<Cell*>& roots) m_uprooted_cells.clear(); } -void Heap::sweep_dead_cells(bool print_report, const Core::ElapsedTimer& measurement_timer) +void Heap::sweep_dead_cells(bool print_report, Core::ElapsedTimer const& measurement_timer) { dbgln_if(HEAP_DEBUG, "sweep_dead_cells:"); Vector<HeapBlock*, 32> empty_blocks; |