Changeset 48315 in webkit for trunk/JavaScriptCore
- Timestamp:
- Sep 11, 2009, 2:34:55 PM (16 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r48300 r48315 1 2009-09-11 Alexey Proskuryakov <[email protected]> 2 3 Reviewed by Geoff Garen. 4 5 https://bugs.webkit.org/show_bug.cgi?id=29207 6 Add checks for using WebCore JS context on secondary threads 7 8 * runtime/JSGlobalData.cpp: (JSC::JSGlobalData::JSGlobalData): 9 * runtime/JSGlobalData.h: 10 Added a new mainThreadOnly flag that WebCore would set. 11 12 * runtime/Collector.cpp: (JSC::Heap::registerThread): JSC API methods always call this, 13 so this is a good place to check that the API isn't used form a wrong thread. 14 1 15 2009-09-11 Jocelyn Turcotte <[email protected]> 2 16 -
trunk/JavaScriptCore/runtime/Collector.cpp
r48068 r48315 652 652 void Heap::registerThread() 653 653 { 654 ASSERT(!m_globalData->mainThreadOnly || isMainThread()); 655 654 656 if (!m_currentThreadRegistrar || pthread_getspecific(m_currentThreadRegistrar)) 655 657 return; -
trunk/JavaScriptCore/runtime/JSGlobalData.cpp
r47738 r48315 148 148 , firstStringifierToMark(0) 149 149 , markStack(vptrSet.jsArrayVPtr) 150 #ifndef NDEBUG 151 , mainThreadOnly(false) 152 #endif 150 153 { 151 154 #if PLATFORM(MAC) -
trunk/JavaScriptCore/runtime/JSGlobalData.h
r47622 r48315 151 151 152 152 MarkStack markStack; 153 154 #ifndef NDEBUG 155 bool mainThreadOnly; 156 #endif 157 153 158 private: 154 159 JSGlobalData(bool isShared, const VPtrSet&);
Note:
See TracChangeset
for help on using the changeset viewer.