Add a release assert that Timer::m_wasDeleted is false in setNextFireTime
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 15 Dec 2017 21:32:07 +0000 (21:32 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 15 Dec 2017 21:32:07 +0000 (21:32 +0000)
commitfded71b02293c91f57bd2de69ea8ce501df6c8ce
tree33434af4934101a1835a464065f22d71a279c5ec
parentad791eef6d12678db5f905d170cba19e2712fcaf
Add a release assert that Timer::m_wasDeleted is false in setNextFireTime
https://bugs.webkit.org/show_bug.cgi?id=180860
<rdar://problem/36066500>

Reviewed by David Kilzer.

Turn an exist debug-only assertion into a release assertion to help diagnose a crash
which appears to be caused by a freed timer getting scheduled back into the timer heap.

* platform/Timer.cpp:
(WebCore::TimerBase::~TimerBase):
(WebCore::TimerBase::setNextFireTime):
* platform/Timer.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@225985 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/Timer.cpp
Source/WebCore/platform/Timer.h