LibJS: GC should gather roots from all active interpreters

If we are in a nested execution context, we shouldn't only mark things
used by the active interpreter.
This commit is contained in:
Andreas Kling 2020-09-21 13:47:33 +02:00
commit fbe2907510
Notes: sideshowbarker 2024-07-19 02:18:15 +09:00
5 changed files with 11 additions and 5 deletions

View file

@ -223,7 +223,7 @@ Symbol* Interpreter::get_global_symbol(const String& description)
return new_global_symbol;
}
void Interpreter::gather_roots(Badge<Heap>, HashTable<Cell*>& roots)
void Interpreter::gather_roots(HashTable<Cell*>& roots)
{
roots.set(m_exception);