From f274c94e65cce0cc02c081f02cacb2a3c70dea9a Mon Sep 17 00:00:00 2001 From: "sgjesse@chromium.org" Date: Fri, 30 Sep 2011 12:12:09 +0000 Subject: [PATCH] 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 --- src/debug.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/debug.cc b/src/debug.cc index 6da6fc4..240cfc0 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; -- 2.7.4