[Webkit-unassigned] [Bug 51115] Crash in web process after the connection had been closed

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Dec 29 17:16:11 PST 2010


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





--- Comment #13 from Darin Adler <darin at apple.com>  2010-12-29 17:16:11 PST ---
(From update of attachment 77057)
View in context: https://bugs.webkit.org/attachment.cgi?id=77057&action=review

I’d like to review, but I’d like to hear from Anders whether he thinks this is the right solution.

> WebKit2/ChangeLog:8
> +        Add mutual exclusion for m_client.

Typically for a single pointer we could use a function like the Mac OS X OSAtomicCompareAndSwapPtrBarrier instead of a mutex. I don’t know if that’s desirable here or not.

> WebKit2/Platform/CoreIPC/Connection.cpp:342
> -    if (!m_client)
> +    if (!isValid())

Is this better? Generally speaking if code is going to be manipulating m_client directly, I am not sure that isValid is providing a helpful abstraction inside the Connection class.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list