Commit 05918b38 authored by ager@chromium.org's avatar ager@chromium.org

Oilpan: Fix Heap::isConsistentForGC which only checks the heap for one...

Oilpan: Fix Heap::isConsistentForGC which only checks the heap for one attached thread at this point.

Thanks for noticing this Peter. :)

R=oilpan-reviews@chromium.org, pkasting@chromium.org, zerny@chromium.org
BUG=

Review URL: https://codereview.chromium.org/206113002

git-svn-id: svn://svn.chromium.org/blink/trunk@169635 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent f79c2e92
...@@ -1356,8 +1356,10 @@ bool Heap::isConsistentForGC() ...@@ -1356,8 +1356,10 @@ bool Heap::isConsistentForGC()
{ {
ASSERT(ThreadState::isAnyThreadInGC()); ASSERT(ThreadState::isAnyThreadInGC());
ThreadState::AttachedThreadStateSet& threads = ThreadState::attachedThreads(); ThreadState::AttachedThreadStateSet& threads = ThreadState::attachedThreads();
for (ThreadState::AttachedThreadStateSet::iterator it = threads.begin(), end = threads.end(); it != end; ++it) for (ThreadState::AttachedThreadStateSet::iterator it = threads.begin(), end = threads.end(); it != end; ++it) {
return (*it)->isConsistentForGC(); if (!(*it)->isConsistentForGC())
return false;
}
return true; return true;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment