Changeset 37630 in webkit for trunk/JavaScriptCore
- Timestamp:
- Oct 15, 2008, 11:41:08 PM (17 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r37629 r37630 1 2008-10-15 Alexey Proskuryakov <[email protected]> 2 3 Reviewed by Darin Adler. 4 5 https://bugs.webkit.org/show_bug.cgi?id=21610 6 run-webkit-threads --threaded crashes in StructureID destructor 7 8 * kjs/StructureID.cpp: 9 (JSC::StructureID::StructureID): 10 (JSC::StructureID::~StructureID): 11 Protect access to a static (debug-only) HashSet with a lock. 12 1 13 2008-10-15 Sam Weinig <[email protected]> 2 14 -
trunk/JavaScriptCore/kjs/StructureID.cpp
r37629 r37630 34 34 #include <wtf/RefPtr.h> 35 35 36 #if ENABLE(JSC_MULTIPLE_THREADS) 37 #include <wtf/Threading.h> 38 #endif 39 36 40 using namespace std; 37 41 … … 40 44 #ifndef NDEBUG 41 45 static WTF::RefCountedLeakCounter structureIDCounter("StructureID"); 46 47 #if ENABLE(JSC_MULTIPLE_THREADS) 48 static Mutex ignoreSetMutex; 49 #endif 42 50 43 51 static bool shouldIgnoreLeaks; … … 83 91 84 92 #ifndef NDEBUG 93 #if ENABLE(JSC_MULTIPLE_THREADS) 94 MutexLocker protect(ignoreSetMutex); 95 #endif 85 96 if (shouldIgnoreLeaks) 86 97 ignoreSet.add(this); … … 116 127 117 128 #ifndef NDEBUG 129 #if ENABLE(JSC_MULTIPLE_THREADS) 130 MutexLocker protect(ignoreSetMutex); 131 #endif 118 132 HashSet<StructureID*>::iterator it = ignoreSet.find(this); 119 133 if (it != ignoreSet.end())
Note:
See TracChangeset
for help on using the changeset viewer.