| Index: src/heap/mark-compact.cc
|
| diff --git a/src/heap/mark-compact.cc b/src/heap/mark-compact.cc
|
| index a90562129b14f539057bb1fd72fdaba6f5c358b2..1132de809f26a62ac53ca28136e2194db988771d 100644
|
| --- a/src/heap/mark-compact.cc
|
| +++ b/src/heap/mark-compact.cc
|
| @@ -3698,6 +3698,7 @@ void MarkCompactCollector::EvacuateNewSpaceAndCandidates() {
|
| GCTracer::Scope gc_scope(heap()->tracer(),
|
| GCTracer::Scope::MC_SWEEP_NEWSPACE);
|
| code_slots_filtering_required = MarkInvalidatedCode();
|
| + EvacuationScope evacuation_scope(this);
|
| EvacuateNewSpace();
|
| }
|
|
|
| @@ -3706,6 +3707,11 @@ void MarkCompactCollector::EvacuateNewSpaceAndCandidates() {
|
| GCTracer::Scope::MC_EVACUATE_PAGES);
|
| EvacuationScope evacuation_scope(this);
|
| EvacuatePages();
|
| +#ifdef VERIFY_HEAP
|
| + if (FLAG_verify_heap && !sweeping_in_progress_) {
|
| + VerifyEvacuation(heap());
|
| + }
|
| +#endif
|
| }
|
|
|
| // Second pass: find pointers to new space and update them.
|
|
|