[Webkit-unassigned] [Bug 179161] New: Eliminate isMainThread() checks in most call sites of NoEventDispatchAssertion

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Nov 2 00:02:10 PDT 2017


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

            Bug ID: 179161
           Summary: Eliminate isMainThread() checks in most call sites of
                    NoEventDispatchAssertion
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML DOM
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: rniwa at webkit.org
                CC: cdumez at apple.com

NoEventDispatchAssertion's constructor & destructor currently checks isMainThread() to make it work in non-main thread.
However, this check is rather expensive and prevents us from converting this into a release assertion.

Introduce NoEventDispatchAssertion::InMainThread which bypasses isMainThread() conditional
whenever the code can only be executed in the main thread.

-- 
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/20171102/1b8b90f9/attachment-0001.html>


More information about the webkit-unassigned mailing list