| Index: src/heap-profiler.cc
|
| ===================================================================
|
| --- src/heap-profiler.cc (revision 3683)
|
| +++ src/heap-profiler.cc (working copy)
|
| @@ -625,8 +625,7 @@
|
| ConstructorHeapProfile js_cons_profile;
|
| RetainerHeapProfile js_retainer_profile;
|
| HeapIterator iterator;
|
| - while (iterator.has_next()) {
|
| - HeapObject* obj = iterator.next();
|
| + for (HeapObject* obj = iterator.next(); obj != NULL; obj = iterator.next()) {
|
| CollectStats(obj, info);
|
| js_cons_profile.CollectStats(obj);
|
| js_retainer_profile.CollectStats(obj);
|
|
|