| Index: src/heap/incremental-marking.cc
|
| diff --git a/src/heap/incremental-marking.cc b/src/heap/incremental-marking.cc
|
| index f52b369d62f2391ad51b39c7c97f79a742149afd..7ee331c4ad48b4caf876dc08a2a0aeb4f8904f74 100644
|
| --- a/src/heap/incremental-marking.cc
|
| +++ b/src/heap/incremental-marking.cc
|
| @@ -23,10 +23,9 @@ IncrementalMarking::StepActions IncrementalMarking::IdleStepActions() {
|
| IncrementalMarking::DO_NOT_FORCE_COMPLETION);
|
| }
|
|
|
| -
|
| IncrementalMarking::IncrementalMarking(Heap* heap)
|
| : heap_(heap),
|
| - observer_(*this, kAllocatedThreshold),
|
| + observer_(*this, heap, kAllocatedThreshold),
|
| state_(STOPPED),
|
| is_compacting_(false),
|
| steps_count_(0),
|
| @@ -46,7 +45,6 @@ IncrementalMarking::IncrementalMarking(Heap* heap)
|
| incremental_marking_finalization_rounds_(0),
|
| request_type_(COMPLETE_MARKING) {}
|
|
|
| -
|
| bool IncrementalMarking::BaseRecordWrite(HeapObject* obj, Object* value) {
|
| HeapObject* value_heap_obj = HeapObject::cast(value);
|
| MarkBit value_bit = Marking::MarkBitFrom(value_heap_obj);
|
| @@ -540,7 +538,7 @@ void IncrementalMarking::Start(const char* reason) {
|
| state_ = SWEEPING;
|
| }
|
|
|
| - heap_->new_space()->AddInlineAllocationObserver(&observer_);
|
| + heap_->new_space()->AddAllocationObserver(&observer_);
|
|
|
| incremental_marking_job()->Start(heap_);
|
| }
|
| @@ -938,7 +936,7 @@ void IncrementalMarking::Stop() {
|
| PrintF("[IncrementalMarking] Stopping.\n");
|
| }
|
|
|
| - heap_->new_space()->RemoveInlineAllocationObserver(&observer_);
|
| + heap_->new_space()->RemoveAllocationObserver(&observer_);
|
| IncrementalMarking::set_should_hurry(false);
|
| ResetStepCounters();
|
| if (IsMarking()) {
|
|
|