Changeset 13568 in webkit for trunk/JavaScriptCore/kxmlcore
- Timestamp:
- Mar 29, 2006, 6:39:24 PM (19 years ago)
- Location:
- trunk/JavaScriptCore/kxmlcore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kxmlcore/FastMalloc.cpp
r13091 r13568 104 104 #endif 105 105 106 } // namespace K JS106 } // namespace KXMLCore 107 107 108 108 #else … … 1396 1396 if (thread != mainThreadID) { 1397 1397 // We lock when writing isMultiThreaded but not when reading it. 1398 // It's ok if the main thread temporarily gets it wrong - the global1399 // variable cache is the same as the thread-specific cache for the main thread.1398 // It's ok if the main thread gets it wrong - for the main thread, the 1399 // global variable cache is the same as the thread-specific cache. 1400 1400 // And other threads can't get it wrong because they must have gone through 1401 1401 // this function before allocating so they've synchronized. 1402 1402 // Also, mainThreadCache is only set when isMultiThreaded is false, 1403 // to save a branch in some cases.1403 // to save a branch in some cases. 1404 1404 SpinLockHolder lock(&multiThreadedLock); 1405 1405 isMultiThreaded = true; … … 2316 2316 2317 2317 #if KXC_CHANGES 2318 } // namespace K JS2318 } // namespace KXMLCore 2319 2319 #endif 2320 2320 -
trunk/JavaScriptCore/kxmlcore/FastMalloc.h
r13089 r13568 33 33 void fastFree(void* p); 34 34 void *fastRealloc(void* p, size_t n); 35 35 36 36 } // namespace KXMLCore 37 37
Note:
See TracChangeset
for help on using the changeset viewer.