[webkit-changes] [WebKit/WebKit] 7ff01e: Thread safety analysis can not use assertion that ...
Kimmo Kinnunen
noreply at github.com
Mon Sep 26 04:59:27 PDT 2022
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 7ff01e452a8ce4b9e086eeb48a3d8843b0ebb3a1
https://github.com/WebKit/WebKit/commit/7ff01e452a8ce4b9e086eeb48a3d8843b0ebb3a1
Author: Kimmo Kinnunen <kkinnunen at apple.com>
Date: 2022-09-26 (Mon, 26 Sep 2022)
Changed paths:
M Source/WTF/wtf/RunLoop.h
M Tools/TestWebKitAPI/Tests/WTF/RunLoop.cpp
Log Message:
-----------
Thread safety analysis can not use assertion that a RunLoop is current
https://bugs.webkit.org/show_bug.cgi?id=245565
rdar://problem/100313515
Reviewed by Antti Koivisto.
Make it possible to assert that a run loop is current by using
assertIsCurrent(m_runLoop);
This enables thread safety analysis to enforce that a particular access is allowed
only on a particular run loop.
* Source/WTF/wtf/RunLoop.h:
(WTF::WTF_ASSERTS_ACQUIRED_CAPABILITY):
* Tools/TestWebKitAPI/Tests/WTF/RunLoop.cpp:
(TestWebKitAPI::TEST):
Canonical link: https://commits.webkit.org/254856@main
More information about the webkit-changes
mailing list