[Webkit-unassigned] [Bug 219591] New: [WTF] RunLoop::dispatchAfter() leaks pending timers after thread termination
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Dec 7 01:18:23 PST 2020
https://bugs.webkit.org/show_bug.cgi?id=219591
Bug ID: 219591
Summary: [WTF] RunLoop::dispatchAfter() leaks pending timers
after thread termination
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: New Bugs
Assignee: webkit-unassigned at lists.webkit.org
Reporter: zan at falconsigh.net
CC: ggaren at apple.com
Spun from bug #219232.
Any task queued via RunLoop::dispatchAfter() is leaked if the RunLoop thread terminates before the underlying DispatchTimer is fired because the DispatchTimer is only freed when it's fired, which doesn't happen after the RunLoop thread terminates.
Right now, the RunLoop reference taken via TimerBase (from which DispatchTimer derives) also blocks the RunLoop object to be destroyed once the thread is terminated. Bug #219232 doesn't help here because DispatchTimer instances are not stored in any containers that could be cleared at the point of termination.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20201207/ffc70ae1/attachment.htm>
More information about the webkit-unassigned
mailing list