mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:27:35 +00:00
LibJS: Only consider VM-accessible execution contexts as strong roots
Partially reverts 3dc5f467a8
to fix
GC memory leak that happens because we treated all execution contexts
as strong roots.
This commit is contained in:
parent
cbb660c756
commit
b108d51c5b
9 changed files with 32 additions and 18 deletions
|
@ -51,6 +51,7 @@ void GeneratorObject::visit_edges(Cell::Visitor& visitor)
|
|||
visitor.visit(m_previous_value);
|
||||
if (m_frame)
|
||||
m_frame->visit_edges(visitor);
|
||||
m_execution_context->visit_edges(visitor);
|
||||
}
|
||||
|
||||
// 27.5.3.2 GeneratorValidate ( generator, generatorBrand ), https://tc39.es/ecma262/#sec-generatorvalidate
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue