diff options
author | Grace Kloba <klobag@google.com> | 2009-11-16 16:10:23 -0800 |
---|---|---|
committer | Grace Kloba <klobag@google.com> | 2009-11-16 16:10:23 -0800 |
commit | 2278eb4c5b402fda7021652c38f6ff5ee588c2ba (patch) | |
tree | aaad9fad686a683159357851f249f98461898dc5 /JavaScriptCore | |
parent | 17a4c1d7f751a096335f214d1e01058fe1fb8b6b (diff) | |
download | external_webkit-2278eb4c5b402fda7021652c38f6ff5ee588c2ba.zip external_webkit-2278eb4c5b402fda7021652c38f6ff5ee588c2ba.tar.gz external_webkit-2278eb4c5b402fda7021652c38f6ff5ee588c2ba.tar.bz2 |
Revert https://android-git.corp.google.com/g/#change,31178
as http://b/issue?id=2183371 is finally fixed.
Diffstat (limited to 'JavaScriptCore')
-rw-r--r-- | JavaScriptCore/wtf/Threading.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/JavaScriptCore/wtf/Threading.h b/JavaScriptCore/wtf/Threading.h index 00d34f2..c5e8f2f 100644 --- a/JavaScriptCore/wtf/Threading.h +++ b/JavaScriptCore/wtf/Threading.h @@ -259,15 +259,8 @@ public: #if USE(LOCKFREE_THREADSAFESHARED) atomicIncrement(&m_refCount); #else -#if defined ANDROID // avoid constructing a class to avoid two mystery crashes - m_mutex.lock(); -#else MutexLocker locker(m_mutex); -#endif ++m_refCount; -#if defined ANDROID - m_mutex.unlock(); -#endif #endif } @@ -294,16 +287,9 @@ protected: #else int refCount; { -#if defined ANDROID // avoid constructing a class to avoid two mystery crashes - m_mutex.lock(); -#else MutexLocker locker(m_mutex); -#endif --m_refCount; refCount = m_refCount; -#if defined ANDROID - m_mutex.unlock(); -#endif } if (refCount <= 0) return true; |