Index: src/heap.cc |
diff --git a/src/heap.cc b/src/heap.cc |
index 2fa7702db07192dc18e976ead0ee29b441e38bce..cb3ba299c7c22c03b45de22ea31b7cc0e21b174b 100644 |
--- a/src/heap.cc |
+++ b/src/heap.cc |
@@ -404,7 +404,7 @@ void Heap::ReportStatisticsAfterGC() { |
} |
-void Heap::GarbageCollectionPrologue() { |
+void Heap::GarbageCollectionPrologue(GarbageCollector collector) { |
{ AllowHeapAllocation for_the_first_part_of_prologue; |
ClearJSFunctionResultCaches(); |
gc_count_++; |
@@ -435,7 +435,7 @@ void Heap::GarbageCollectionPrologue() { |
ReportStatisticsBeforeGC(); |
#endif // DEBUG |
- store_buffer()->GCPrologue(); |
+ store_buffer()->GCPrologue(collector == MARK_COMPACTOR); |
if (isolate()->concurrent_osr_enabled()) { |
isolate()->optimizing_compiler_thread()->AgeBufferedOsrJobs(); |
@@ -833,7 +833,7 @@ bool Heap::CollectGarbage(GarbageCollector collector, |
{ GCTracer tracer(this, gc_reason, collector_reason); |
ASSERT(AllowHeapAllocation::IsAllowed()); |
DisallowHeapAllocation no_allocation_during_gc; |
- GarbageCollectionPrologue(); |
+ GarbageCollectionPrologue(collector); |
// The GC count was incremented in the prologue. Tell the tracer about |
// it. |
tracer.set_gc_count(gc_count_); |