Chromium Code Reviews| Index: Source/platform/heap/HeapTest.cpp |
| diff --git a/Source/platform/heap/HeapTest.cpp b/Source/platform/heap/HeapTest.cpp |
| index 79e25f767bf12dfd6ed8c57171a5c4b96aef1471..1ddccb4f20387b3cd9f8a3162553db713d0ad985 100644 |
| --- a/Source/platform/heap/HeapTest.cpp |
| +++ b/Source/platform/heap/HeapTest.cpp |
| @@ -5459,7 +5459,8 @@ public: |
| void trace(Visitor* visitor) |
| { |
| int calls = ++sTraceCalls; |
| - visitor->trace(m_next); |
| + if (sTraceLazy <= 2) |
|
haraken
2015/02/20 20:15:31
Can we add a comment on this?
peria
2015/02/23 02:42:09
This patch has been committed, so I'll do it in an
|
| + visitor->trace(m_next); |
| if (sTraceCalls == calls) |
| sTraceLazy++; |
| } |
| @@ -5477,7 +5478,7 @@ TEST(HeapTest, TraceDeepEagerly) |
| { |
| #if !ENABLE(ASSERT) |
| DeepEagerly* obj = nullptr; |
| - for (int i = 0; i < 10000; i++) |
| + for (int i = 0; i < 10000000; i++) |
| obj = new DeepEagerly(obj); |
| Persistent<DeepEagerly> persistent(obj); |