Commit 4c41d327 authored by vegorov@chromium.org's avatar vegorov@chromium.org

We might decide to start incremental marking immediately after finishing one cycle.

In this case uncommiting marking deque is impossible.

R=erik.corry@gmail.com

Review URL: http://codereview.chromium.org/8528030

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9998 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 85288e4c
......@@ -453,8 +453,7 @@ void IncrementalMarking::EnsureMarkingDequeIsCommitted() {
}
void IncrementalMarking::UncommitMarkingDeque() {
ASSERT(state_ == STOPPED);
if (marking_deque_memory_committed_) {
if (state_ == STOPPED && marking_deque_memory_committed_) {
bool success = marking_deque_memory_->Uncommit(
reinterpret_cast<Address>(marking_deque_memory_->address()),
marking_deque_memory_->size());
......
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