1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 21:18:14 +00:00

LibJS: GC: Remove clear_all_mark_bits()

Clearing all marked flags has been integrated into the sweep function,
saving an additional full iteration over the heap.
This commit is contained in:
Stephan Unverwerth 2020-03-08 23:17:34 +01:00 committed by Andreas Kling
parent b956e2d939
commit 1207187e97
2 changed files with 7 additions and 14 deletions

View file

@ -58,7 +58,6 @@ private:
void collect_roots(HashTable<Cell*>&);
void visit_live_cells(const HashTable<Cell*>& roots, HashTable<Cell*>& live_cells);
void clear_all_mark_bits();
void mark_live_cells(const HashTable<Cell*>& live_cells);
void sweep_dead_cells();