mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +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:
committed by
Andreas Kling
parent
cbb660c756
commit
b108d51c5b
@@ -21,12 +21,10 @@ NonnullOwnPtr<ExecutionContext> ExecutionContext::create(Heap& heap)
|
||||
ExecutionContext::ExecutionContext(Heap& heap)
|
||||
: m_heap(heap)
|
||||
{
|
||||
m_heap.did_create_execution_context({}, *this);
|
||||
}
|
||||
|
||||
ExecutionContext::~ExecutionContext()
|
||||
{
|
||||
m_heap.did_destroy_execution_context({}, *this);
|
||||
}
|
||||
|
||||
NonnullOwnPtr<ExecutionContext> ExecutionContext::copy() const
|
||||
|
||||
Reference in New Issue
Block a user