| Index: src/mark-compact.cc
|
| diff --git a/src/mark-compact.cc b/src/mark-compact.cc
|
| index 40333fe1f838037fe4822f067a010fbc1032045a..273b38d6ac510ee5fa0f434243175f15608b87a0 100644
|
| --- a/src/mark-compact.cc
|
| +++ b/src/mark-compact.cc
|
| @@ -2363,8 +2363,10 @@ void MarkCompactCollector::AfterMarking() {
|
| code_flusher_->ProcessCandidates();
|
| }
|
|
|
| - // Clean up dead objects from the runtime profiler.
|
| - heap()->isolate()->runtime_profiler()->RemoveDeadSamples();
|
| + if (!FLAG_counting_profiler) {
|
| + // Clean up dead objects from the runtime profiler.
|
| + heap()->isolate()->runtime_profiler()->RemoveDeadSamples();
|
| + }
|
| }
|
|
|
|
|
| @@ -3371,9 +3373,11 @@ void MarkCompactCollector::EvacuateNewSpaceAndCandidates() {
|
| heap_->UpdateReferencesInExternalStringTable(
|
| &UpdateReferenceInExternalStringTableEntry);
|
|
|
| - // Update JSFunction pointers from the runtime profiler.
|
| - heap()->isolate()->runtime_profiler()->UpdateSamplesAfterCompact(
|
| - &updating_visitor);
|
| + if (!FLAG_counting_profiler) {
|
| + // Update JSFunction pointers from the runtime profiler.
|
| + heap()->isolate()->runtime_profiler()->UpdateSamplesAfterCompact(
|
| + &updating_visitor);
|
| + }
|
|
|
| EvacuationWeakObjectRetainer evacuation_object_retainer;
|
| heap()->ProcessWeakReferences(&evacuation_object_retainer);
|
|
|