[Webkit-unassigned] [Bug 173789] New: Add assertions to RefCounted and DeferrableRefCounted to catch thread-safety issues

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jun 23 13:52:26 PDT 2017


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

            Bug ID: 173789
           Summary: Add assertions to RefCounted and DeferrableRefCounted
                    to catch thread-safety issues
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Template Framework
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ddkilzer at webkit.org
                CC: bfulgham at webkit.org, cdumez at apple.com, darin at apple.com

While reading the committed fix for Bug 173753 (<https://trac.webkit.org/r218734>), I wondered if there was a way to catch thread-unsafe use of RefCounted objects in Debug builds.

After talking to Chris Dumez, he pointed me to the fix for Bug 173693 (<https://trac.webkit.org/r218705>), where a thread ID debug assertion was added to WebKit::GenericCallback.

So this bug represents adding a similar debug assertion to RefCounted and DeferrableRefCounted to check for places where RefCountedBase::m_refCount and DeferrableRefCountedBase::m_refCount are being accessed on a different thread than the thread where the object was created.  This also catches situations where ref() and deref() are called on different threads.

-- 
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/20170623/3ec74ab1/attachment.html>


More information about the webkit-unassigned mailing list