mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-04 18:23:39 +00:00
Before this change, tasks associated with a destroyed document would get stuck in the task queue forever, since document-associated tasks are not allowed to run when their document isn't fully active (and destroyed documents never become fully active again). This caused everything captured by task callbacks to leak. We now treat tasks for destroyed documents as runnable immediately, which gets them out of the queue. This fixes another massive GC leak on Speedometer. |
||
---|---|---|
.. | ||
EventLoop.cpp | ||
EventLoop.h | ||
Task.cpp | ||
Task.h | ||
TaskQueue.cpp | ||
TaskQueue.h |