[Webkit-unassigned] [Bug 26839] Reference counting in JSC::UString is not thread safe

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 30 09:22:13 PDT 2009


------- Comment #3 from mrowe at apple.com  2009-06-30 09:22 PDT -------
The comment alongside the variable declaration that you modified explicitly
states that ref() and deref() are not intended to be thread safe.  It is safe
to use the null and empty strings from multiple threads as there is a
special-case in ::destroy that prevents them from being deleted irrespective of
their reference count.  UStrings other than the null and empty strings are not
intended to be used on multiple threads concurrently.  If you wish to do this,
you need to use an explicit synchronization mechanism.

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

More information about the webkit-unassigned mailing list