Changeset 126379 in webkit
- Timestamp:
- Aug 22, 2012, 6:33:25 PM (13 years ago)
- Location:
- trunk/Source
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r126354 r126379 1 2012-08-22 Geoffrey Garen <ggaren@apple.com> 2 3 ThreadRestrictionVerifier should be opt-in, not opt-out 4 https://bugs.webkit.org/show_bug.cgi?id=94761 5 6 Reviewed by Mark Hahnenberg. 7 8 Removed explicit calls to disable the verifier, since it's off by default now. 9 10 * parser/SourceProvider.h: 11 (JSC::SourceProvider::SourceProvider): 12 (SourceProvider): 13 * runtime/SymbolTable.h: 14 (JSC::SharedSymbolTable::SharedSymbolTable): 15 1 16 2012-08-22 Mark Hahnenberg <mhahnenberg@apple.com> 2 17 -
trunk/Source/JavaScriptCore/parser/SourceProvider.h
r118966 r126379 50 50 , m_cacheOwned(!cache) 51 51 { 52 turnOffVerifier();53 52 } 53 54 54 virtual ~SourceProvider() 55 55 { -
trunk/Source/JavaScriptCore/runtime/SymbolTable.h
r120244 r126379 331 331 static PassRefPtr<SharedSymbolTable> create() { return adoptRef(new SharedSymbolTable); } 332 332 private: 333 SharedSymbolTable() { turnOffVerifier();}333 SharedSymbolTable() { } 334 334 }; 335 335 -
trunk/Source/WTF/ChangeLog
r126291 r126379 1 2012-08-22 Geoffrey Garen <ggaren@apple.com> 2 3 ThreadRestrictionVerifier should be opt-in, not opt-out 4 https://bugs.webkit.org/show_bug.cgi?id=94761 5 6 Reviewed by Mark Hahnenberg. 7 8 WebKit's JavaScript engine supports use on multiple threads, so default-on 9 is not appropriate for most of our objects, and it causes lots of suprious 10 assertions. 11 12 * wtf/MetaAllocator.cpp: 13 (WTF::MetaAllocatorHandle::MetaAllocatorHandle): No need to turn off 14 explicitly, since it's off by default now. 15 16 * wtf/ThreadRestrictionVerifier.h: 17 (WTF::ThreadRestrictionVerifier::ThreadRestrictionVerifier): Turn off by default. 18 19 (WTF::ThreadRestrictionVerifier::setMutexMode): 20 (WTF::ThreadRestrictionVerifier::setDispatchQueueMode): 21 (WTF::ThreadRestrictionVerifier::turnOffVerification): These assertions 22 about state transitions were inconsistent with each other, and impossible 23 to maintain with default off, so I removed them. 24 1 25 2012-08-22 Allan Sandfeld Jensen <allan.jensen@nokia.com> 2 26 -
trunk/Source/WTF/wtf/MetaAllocator.cpp
r116583 r126379 80 80 ASSERT(start); 81 81 ASSERT(sizeInBytes); 82 turnOffVerifier();83 82 } 84 83 -
trunk/Source/WTF/wtf/ThreadRestrictionVerifier.h
r111778 r126379 51 51 public: 52 52 ThreadRestrictionVerifier() 53 #if USE(JSC) 54 : m_mode(NoVerificationMode) 55 #else 53 56 : m_mode(SingleThreadVerificationMode) 57 #endif 54 58 , m_shared(false) 55 59 , m_owningThread(0) … … 71 75 void setMutexMode(Mutex& mutex) 72 76 { 73 ASSERT(m_mode == SingleThreadVerificationMode || (m_mode == MutexVerificationMode && &mutex == m_mutex));74 77 m_mode = MutexVerificationMode; 75 78 m_mutex = &mutex; … … 79 82 void setDispatchQueueMode(dispatch_queue_t queue) 80 83 { 81 ASSERT(m_mode == SingleThreadVerificationMode);82 84 m_mode = SingleDispatchQueueVerificationMode; 83 85 m_owningQueue = queue; … … 88 90 void turnOffVerification() 89 91 { 90 ASSERT(m_mode == SingleThreadVerificationMode);91 92 m_mode = NoVerificationMode; 92 93 }
Note:
See TracChangeset
for help on using the changeset viewer.