1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:48:12 +00:00

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
parent 31bb107922
commit fbe2907510
5 changed files with 11 additions and 5 deletions

View file

@ -135,7 +135,7 @@ public:
Symbol* get_global_symbol(const String& description);
void gather_roots(Badge<Heap>, HashTable<Cell*>&);
void gather_roots(HashTable<Cell*>&);
void enter_scope(const ScopeNode&, ArgumentVector, ScopeType, GlobalObject&);
void exit_scope(const ScopeNode&);