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
This commit is contained in:
vegorov@chromium.org 2011-11-15 13:01:52 +00:00
parent 85288e4c1c
commit 4c41d327da

View File

@ -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());