Changeset 57853 in webkit for trunk/JavaScriptCore/runtime/Identifier.cpp
- Timestamp:
- Apr 19, 2010, 4:26:29 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/Identifier.cpp
r57829 r57853 29 29 #include <wtf/FastMalloc.h> 30 30 #include <wtf/HashSet.h> 31 #include <wtf/WTFThreadData.h>32 31 33 32 using WTF::ThreadSpecific; … … 230 229 void Identifier::remove(UString::Rep* r) 231 230 { 232 wtfThreadData().currentIdentifierTable()->remove(r);231 currentIdentifierTable()->remove(r); 233 232 } 234 233 … … 254 253 // Check the identifier table accessible through the threadspecific matches the 255 254 // globalData's identifier table. 256 ASSERT_UNUSED(globalData, globalData->identifierTable == wtfThreadData().currentIdentifierTable());255 ASSERT_UNUSED(globalData, globalData->identifierTable == currentIdentifierTable()); 257 256 } 258 257 … … 271 270 #endif 272 271 272 ThreadSpecific<ThreadIdentifierTableData>* g_identifierTableSpecific = 0; 273 274 #if ENABLE(JSC_MULTIPLE_THREADS) 275 276 pthread_once_t createIdentifierTableSpecificOnce = PTHREAD_ONCE_INIT; 277 static void createIdentifierTableSpecificCallback() 278 { 279 ASSERT(!g_identifierTableSpecific); 280 g_identifierTableSpecific = new ThreadSpecific<ThreadIdentifierTableData>(); 281 } 282 void createIdentifierTableSpecific() 283 { 284 pthread_once(&createIdentifierTableSpecificOnce, createIdentifierTableSpecificCallback); 285 ASSERT(g_identifierTableSpecific); 286 } 287 288 #else 289 290 void createIdentifierTableSpecific() 291 { 292 ASSERT(!g_identifierTableSpecific); 293 g_identifierTableSpecific = new ThreadSpecific<ThreadIdentifierTableData>(); 294 } 295 296 #endif 297 273 298 } // namespace JSC
Note:
See TracChangeset
for help on using the changeset viewer.