From: sgjesse@chromium.org Date: Fri, 30 Sep 2011 12:12:09 +0000 (+0000) Subject: Make sure heap is iteratable before iterating it. X-Git-Tag: upstream/4.7.83~18310 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f274c94e65cce0cc02c081f02cacb2a3c70dea9a;p=platform%2Fupstream%2Fv8.git Make sure heap is iteratable before iterating it. This line was accidentally removed in r9489. TBR=kmillikin@chromium.org BUG= TEST= Review URL: http://codereview.chromium.org//8086018 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9497 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/debug.cc b/src/debug.cc index 6da6fc447..240cfc004 100644 --- a/src/debug.cc +++ b/src/debug.cc @@ -1778,6 +1778,10 @@ void Debug::PrepareForBreakPoints() { List > 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;