| Index: src/mark-compact.cc
|
| diff --git a/src/mark-compact.cc b/src/mark-compact.cc
|
| index 810f25d439fb3e11e5e351c035141929b855a99d..9be71e101c225115811c2101f31cadd6e040800f 100644
|
| --- a/src/mark-compact.cc
|
| +++ b/src/mark-compact.cc
|
| @@ -3046,7 +3046,7 @@ void MarkCompactCollector::EvacuateNewSpace() {
|
| // There are soft limits in the allocation code, designed trigger a mark
|
| // sweep collection by failing allocations. But since we are already in
|
| // a mark-sweep allocation, there is no sense in trying to trigger one.
|
| - AlwaysAllocateScope scope;
|
| + AlwaysAllocateScope scope(isolate());
|
| heap()->CheckNewSpaceExpansionCriteria();
|
|
|
| NewSpace* new_space = heap()->new_space();
|
| @@ -3078,7 +3078,7 @@ void MarkCompactCollector::EvacuateNewSpace() {
|
|
|
|
|
| void MarkCompactCollector::EvacuateLiveObjectsFromPage(Page* p) {
|
| - AlwaysAllocateScope always_allocate;
|
| + AlwaysAllocateScope always_allocate(isolate());
|
| PagedSpace* space = static_cast<PagedSpace*>(p->owner());
|
| ASSERT(p->IsEvacuationCandidate() && !p->WasSwept());
|
| p->MarkSweptPrecisely();
|
|
|