[Webkit-unassigned] [Bug 26839] Reference counting in JSC::UString is not thread safe
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jul 1 02:42:06 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=26839
jaroslav.franek at acision.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jaroslav.franek at acision.com
------- Comment #5 from jaroslav.franek at acision.com 2009-07-01 02:42 PDT -------
Hi gents,
We probably have a misunderstanding here. The purpose of this patch is not to
make UString thread-safe. The sole purpose is to make the increment & decrement
of the reference counter thread-safe in MT environment.
Clearly the atomic operations used in the patch would not provide thread safety
for the Ustring instance. Rather they are protecting only the 'rc' member.
This fix eliminates millions of valgrind reports that otherwise overwhelm the
valgrind output log. Please see the following summary got on the same test
case:
original code:
==9392== ERROR SUMMARY: 3511545 errors from 365 contexts (suppressed: 3670978
from 6)
patched code:
==7902== ERROR SUMMARY: 2470023 errors from 91 contexts (suppressed: 3689267
from 6)
gain: 1041522 less errors (30%)
Our main goal is to use the WebKit on Linux x86_64 platform in multi-thread
environment. The patch is important for us. Please reconsider your decision.
Thank you.
--
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