Revision: 9497 Author: [email protected] Date: Fri Sep 30 05:12:09 2011 Log: Make sure heap is iteratable before iterating it.
This line was accidentally removed in r9489. [email protected] BUG= TEST= Review URL: http://codereview.chromium.org//8086018 http://code.google.com/p/v8/source/detail?r=9497 Modified: /branches/bleeding_edge/src/debug.cc ======================================= --- /branches/bleeding_edge/src/debug.cc Fri Sep 30 01:39:56 2011 +++ /branches/bleeding_edge/src/debug.cc Fri Sep 30 05:12:09 2011 @@ -1778,6 +1778,10 @@ List<Handle<JSFunction> > active_functions(100); { + // We are going to iterate heap to find all functions without + // debug break slots. + isolate_->heap()->CollectAllGarbage(Heap::kMakeHeapIterableMask); + // Ensure no GC in this scope as we are comparing raw pointer // values and performing a heap iteration. AssertNoAllocation no_allocation; -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
