| Index: src/heap/incremental-marking.cc
|
| diff --git a/src/heap/incremental-marking.cc b/src/heap/incremental-marking.cc
|
| index 52d0ca4e51b6e297c04c94bfb686116722d32bba..e3f9b010fd047bf0119c8f4b9305a119531d102f 100644
|
| --- a/src/heap/incremental-marking.cc
|
| +++ b/src/heap/incremental-marking.cc
|
| @@ -26,7 +26,7 @@ IncrementalMarking::StepActions IncrementalMarking::IdleStepActions() {
|
|
|
| IncrementalMarking::IncrementalMarking(Heap* heap)
|
| : heap_(heap),
|
| - observer_(*this, kAllocatedThreshold),
|
| + observer_(*this, heap, kAllocatedThreshold),
|
| state_(STOPPED),
|
| is_compacting_(false),
|
| steps_count_(0),
|
| @@ -541,7 +541,7 @@ void IncrementalMarking::Start(const char* reason) {
|
| state_ = SWEEPING;
|
| }
|
|
|
| - heap_->new_space()->AddInlineAllocationObserver(&observer_);
|
| + heap_->new_space()->AddAllocationObserver(&observer_);
|
|
|
| incremental_marking_job()->Start(heap_);
|
| }
|
| @@ -939,7 +939,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()) {
|
| @@ -968,7 +968,7 @@ void IncrementalMarking::Finalize() {
|
| state_ = STOPPED;
|
| is_compacting_ = false;
|
|
|
| - heap_->new_space()->RemoveInlineAllocationObserver(&observer_);
|
| + heap_->new_space()->RemoveAllocationObserver(&observer_);
|
| IncrementalMarking::set_should_hurry(false);
|
| ResetStepCounters();
|
| PatchIncrementalMarkingRecordWriteStubs(heap_,
|
|
|