Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: abc047acec4e9df62237ee9ccd262095ddb627ec
https://github.com/WebKit/WebKit/commit/abc047acec4e9df62237ee9ccd262095ddb627ec
Author: Ruthvik Konda <[email protected]>
Date: 2025-12-22 (Mon, 22 Dec 2025)
Changed paths:
M Source/WTF/wtf/RunLoop.h
Log Message:
-----------
Make m_registeredTimerLock an UnfairLock to prevent priority inversion
https://bugs.webkit.org/show_bug.cgi?id=304515
rdar://166897281
Reviewed by Ben Nham.
Similar to m_nextIterationLock in https://github.com/WebKit/WebKit/pull/55668,
m_registeredTimerLock
is another RunLoop WTF::Lock that could lead to priority inversion since both
low and high
priority threads can acquire it.
So as a defensive measure, we change m_registeredTimerLock from a WTF::Lock to
UnfairLock to enable priority inheritance.
This is similar to the fix for m_incomingMessagesLock in
https://commits.webkit.org/281223@main.
* Source/WTF/wtf/RunLoop.h:
Canonical link: https://commits.webkit.org/304868@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications