Changeset 92050 in webkit
- Timestamp:
- Jul 30, 2011 4:43:07 AM (13 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r92046 r92050 1 2011-07-30 Balazs Kelemen <kbalazs@webkit.org> 2 3 MessageQueue::waitForMessageFilteredWithTimeout can triggers an assertion 4 https://bugs.webkit.org/show_bug.cgi?id=65263 5 6 Reviewed by Dmitry Titov. 7 8 * wtf/Deque.h: 9 (WTF::::operator): Don't check the validity of an iterator 10 that will be reassigned right now. 11 * wtf/MessageQueue.h: 12 (WTF::::removeIf): Revert r51198 as I beleave this is the better 13 solution for the problem that was solved by that. 14 1 15 2011-07-29 Filip Pizlo <fpizlo@apple.com> 2 16 -
trunk/Source/JavaScriptCore/wtf/Deque.h
r90629 r92050 614 614 inline DequeIteratorBase<T, inlineCapacity>& DequeIteratorBase<T, inlineCapacity>::operator=(const Base& other) 615 615 { 616 checkValidity();617 616 other.checkValidity(); 618 617 removeFromIteratorsList(); -
trunk/Source/JavaScriptCore/wtf/MessageQueue.h
r85603 r92050 173 173 { 174 174 MutexLocker lock(m_mutex); 175 // See bug 31657 for why this loop looks so weird 176 while (true) { 177 DequeConstIterator<DataType*> found = m_queue.findIf(predicate); 178 if (found == m_queue.end()) 179 break; 180 175 DequeConstIterator<DataType*> found = m_queue.end(); 176 while ((found = m_queue.findIf(predicate)) != m_queue.end()) { 181 177 DataType* message = *found; 182 178 m_queue.remove(found); 183 179 delete message; 184 }180 } 185 181 } 186 182
Note: See TracChangeset
for help on using the changeset viewer.