Changeset 236962 in webkit
- Timestamp:
- Oct 9, 2018, 8:31:31 AM (8 years ago)
- Location:
- trunk/Source/WTF
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
wtf/StackBounds.cpp (modified) (1 diff)
-
wtf/StackBounds.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r236942 r236962 1 2018-10-09 Mark Lam <mark.lam@apple.com> 2 3 Revert temporary asserts for debugging a mysterious ASAN bot crash. 4 https://bugs.webkit.org/show_bug.cgi?id=190396 5 6 Reviewed by Yusuke Suzuki. 7 8 * wtf/StackBounds.cpp: 9 (WTF::StackBounds::newThreadStackBounds): 10 * wtf/StackBounds.h: 11 (WTF::StackBounds::checkConsistency const): 12 1 13 2018-10-08 Aditya Keerthi <akeerthi@apple.com> 2 14 -
trunk/Source/WTF/wtf/StackBounds.cpp
r236909 r236962 145 145 if (stackDirection() == StackDirection::Upward) 146 146 std::swap(origin, bound); 147 148 // The following set of assertions are only needed for debugging a149 // mysterious crash on an ASAN bot that is not reproducible otherwise.150 // Will remove after the needed data has been collected.151 #if OS(LINUX)152 else {153 ASSERT(stackDirection() == StackDirection::Downward);154 void* currentPosition = ¤tPosition;155 ASSERT_WITH_MESSAGE_UNUSED(currentPosition, (currentPosition < origin && currentPosition > bound), "newThreadStackBounds: currentPosition %p origin %p bound %p stackSize %zu", currentPosition, origin, bound, stackSize);156 }157 #endif158 // End of ASAN bot debugging assertions.159 147 160 148 return StackBounds { origin, bound }; -
trunk/Source/WTF/wtf/StackBounds.h
r236909 r236962 148 148 #if !ASSERT_DISABLED 149 149 void* currentPosition = ¤tPosition; 150 151 // The following set of assertions are only needed for debugging a152 // mysterious crash on an ASAN bot that is not reproducible otherwise.153 // Will remove after the needed data has been collected.154 #if OS(LINUX)155 if (isGrowingDownward())156 ASSERT_WITH_MESSAGE((currentPosition < m_origin && currentPosition > m_bound), "checkConsistency: currentPosition %p m_origin %p m_bound %p stackSize %zu", currentPosition, m_origin, m_bound, (reinterpret_cast<uint8_t*>(m_origin) - reinterpret_cast<uint8_t*>(m_bound)));157 else158 ASSERT_WITH_MESSAGE((currentPosition > m_origin && currentPosition < m_bound), "checkConsistency: currentPosition %p m_origin %p m_bound %p stackSize %zu", currentPosition, m_origin, m_bound, (reinterpret_cast<uint8_t*>(m_bound) - reinterpret_cast<uint8_t*>(m_origin)));159 #endif // OS(LINUX)160 // End of ASAN bot debugging assertions.161 162 150 ASSERT(m_origin != m_bound); 163 151 ASSERT(isGrowingDownward()
Note:
See TracChangeset
for help on using the changeset viewer.