Changeset 48731 in webkit for trunk/JavaScriptCore
- Timestamp:
- Sep 24, 2009, 2:15:22 PM (16 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r48727 r48731 1 2009-09-24 Mark Rowe <[email protected]> 2 3 Reviewed by Gavin Barraclough. 4 5 Fix FastMalloc to build with assertions enabled. 6 7 * wtf/FastMalloc.cpp: 8 (WTF::TCMalloc_Central_FreeList::ReleaseToSpans): 9 * wtf/TCSpinLock.h: 10 (TCMalloc_SpinLock::IsHeld): 11 1 12 2009-09-24 Geoffrey Garen <[email protected]> 2 13 -
trunk/JavaScriptCore/wtf/FastMalloc.cpp
r47664 r48731 2389 2389 if (false) { 2390 2390 // Check that object does not occur in list 2391 intgot = 0;2391 unsigned got = 0; 2392 2392 for (void* p = span->objects; p != NULL; p = *((void**) p)) { 2393 2393 ASSERT(p != object); -
trunk/JavaScriptCore/wtf/TCSpinLock.h
r38673 r48731 210 210 if (pthread_mutex_unlock(&private_lock_) != 0) CRASH(); 211 211 } 212 bool IsHeld() { 213 if (pthread_mutex_trylock(&private_lock_)) 214 return true; 215 216 Unlock(); 217 return false; 218 } 212 219 }; 213 220
Note:
See TracChangeset
for help on using the changeset viewer.