OSDN Git Service

Back in 02/08 when we added android_atomic_inc/dec, for
authorGrace Kloba <klobag@google.com>
Tue, 20 Oct 2009 23:08:58 +0000 (16:08 -0700)
committerGrace Kloba <klobag@google.com>
Tue, 20 Oct 2009 23:08:58 +0000 (16:08 -0700)
commit87689f70d66dc2559c19e60ab6f759874eeea56a
tree83716a996cfe39293616e750cf5b1098c5fd6e7a
parente99015639226215f6e9089a7a49b196e40e625f0
Back in 02/08 when we added android_atomic_inc/dec, for
some reason, it missed define WTF_USE_LOCKFREE_THREADSAFESHARED.
So we are using mutexlocker instead of refcount inc/dec.
Even mutex version should work, but it is not exercised
by win/darwin/gcc. Changing to use refcount version fixed
the crash seen in picasaweb.

Fix http://b/issue?id=2183371
Maybe fix http://b/issue?id=2165237. But I can't verify
as I can't reproduce it even before my change.
JavaScriptCore/wtf/Threading.h