12017-12-16 Yusuke Suzuki <utatane.tea@gmail.com>
2
3 [JSC] Number of SlotVisitors can increase after setting up m_visitCounters
4 https://bugs.webkit.org/show_bug.cgi?id=180906
5
6 Reviewed by NOBODY (OOPS!).
7
8 The number of SlotVisitors can increase after setting up m_visitCounters.
9 If it happens, our m_visitCounters misses the visit count of newly added
10 SlotVisitors. It accidentally decides that constraints are converged.
11 This leads to random assertion hits in Linux environment.
12
13 In this patch, we compare the number of SlotVisitors in didVisitSomething().
14 If the number of SlotVisitors is changed, we conservatively say we did
15 visit something.
16
17 * heap/Heap.h:
18 * heap/HeapInlines.h:
19 (JSC::Heap::numberOfSlotVisitors):
20 * heap/MarkingConstraintSet.h:
21 * heap/MarkingConstraintSolver.cpp:
22 (JSC::MarkingConstraintSolver::didVisitSomething const):
23