[Webkit-unassigned] [Bug 237026] New: WTF::ThreadAssertion is not useful as most of the code is run with a WorkQueue

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Feb 22 01:40:28 PST 2022


https://bugs.webkit.org/show_bug.cgi?id=237026

            Bug ID: 237026
           Summary: WTF::ThreadAssertion is not useful as most of the code
                    is run with a WorkQueue
           Product: WebKit
           Version: Other
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Template Framework
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: kkinnunen at apple.com
        Depends on: 236832

WTF::ThreadAssertion is not useful as most of the code is run with a WorkQueue

ThreadAssertion cannot be used with WorkQueues because a WorkQueue might run its runnables in multiple different threads. On Cocoa this happens via thread of a thread pool for Dispatch dispatch queue.

We should have an assertion that can assert that the object is manipulated in the expected sequence, where sequence means either work queue or thread.


Referenced Bugs:

https://bugs.webkit.org/show_bug.cgi?id=236832
[Bug 236832] Thread safety analysis to assert "code is run sequentially" is not useful when code is mainly run with WorkQueues
-- 
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/20220222/79494ab7/attachment-0001.htm>


More information about the webkit-unassigned mailing list