[Webkit-unassigned] [Bug 31639] Add asserts to RefCounted to make sure ref/deref happens on the right thread.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Nov 19 20:26:32 PST 2009


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





--- Comment #1 from Dmitry Titov <dimich at chromium.org>  2009-11-19 20:26:31 PST ---
Created an attachment (id=43545)
 --> (https://bugs.webkit.org/attachment.cgi?id=43545)
Intermediate patch

I've tried to experiment with something like this... Intermediate patch.

There is makeExemptFromThreadCheck() function that stores a per-instance flag
which I was hoping to use to have some sort of 'dynamic opt-out'. To make it
possible to 'temporarily exclude' an instance of RefCounted from the
requirement to be refcounted on the same thread - and then use it for things
like String, relaxing the check in certain portions of code and still asserting
in others. But IconDatabase quickly discouraged me from this... It is very
hard, looking at code, to know where to enable/disable the check. Usage on
different threads can happen in way distant codepaths.

-- 
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