Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 1afb343a6d30aa01e0ce2fa57d7fa5e953baae06
https://github.com/WebKit/WebKit/commit/1afb343a6d30aa01e0ce2fa57d7fa5e953baae06
Author: Claudio Saavedra <[email protected]>
Date: 2026-08-27 (Thu, 27 Aug 2026)
Changed paths:
M Source/WTF/wtf/linux/HighPriorityThreads.cpp
M Source/WTF/wtf/linux/HighPriorityThreads.h
Log Message:
-----------
[GLIB] HighPriorityThreads hits an assertion crash when its RealtimeKit proxy
timer fires
https://bugs.webkit.org/show_bug.cgi?id=322715
Reviewed by Justin Michaud.
The singleton is built by the first high priority thread to start, since
Thread::initializeSchedulingAttributes() runs on the thread being started. The
member function form of RunLoop::Timer captures a WeakPtr bound to that thread,
while the timer runs on the main run loop; firing it trips the WeakPtr thread
assertion.
Give the timer a lambda that goes through singleton() instead. The object
outlives every run loop, so neither the weak reference nor the no-op ref/deref
that supported it were needed.
* Source/WTF/wtf/linux/HighPriorityThreads.cpp:
(WTF::HighPriorityThreads::HighPriorityThreads):
* Source/WTF/wtf/linux/HighPriorityThreads.h:
(WTF::HighPriorityThreads::ref const): Deleted.
(WTF::HighPriorityThreads::deref const): Deleted.
Canonical link: https://commits.webkit.org/319959@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications