Regression(r191673): Crash in RunLoopTimer::schedule()
authorcdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 30 Oct 2015 18:55:36 +0000 (18:55 +0000)
committercdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 30 Oct 2015 18:55:36 +0000 (18:55 +0000)
commit2aebf840e6067a728b1f0b7f9a2a5154bbe098ef
treeeb2ad6195b3376d4e9f067f7a3310b53e721784a
parentd923c67e29159fa812bf6c5b6aceecd51c93a82b
Regression(r191673): Crash in RunLoopTimer::schedule()
https://bugs.webkit.org/show_bug.cgi?id=150723

Reviewed by Anders Carlsson.

We were crashing in RunLoopTimer::schedule() when iterating over the
SchedulePairHashSet. The reason is that we were passing this
SchedulePairHashSet from the main thread to a background thread, which
was not safe because the SchedulePair objects inside the HashSet were
not ThreadSafeRefCounted. This patch makes them ThreadSafeRefCounted.

* wtf/SchedulePair.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@191803 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WTF/ChangeLog
Source/WTF/wtf/SchedulePair.h