| Index: src/incremental-marking-inl.h
|
| diff --git a/src/incremental-marking-inl.h b/src/incremental-marking-inl.h
|
| index 3e3d6c43fda9c1c97c7a30238d0add88bd8c1224..5ce003f31d4c0d27e81a66df22ad269f11810ca4 100644
|
| --- a/src/incremental-marking-inl.h
|
| +++ b/src/incremental-marking-inl.h
|
| @@ -100,7 +100,7 @@ void IncrementalMarking::BlackToGreyAndUnshift(HeapObject* obj,
|
| int64_t old_bytes_rescanned = bytes_rescanned_;
|
| bytes_rescanned_ = old_bytes_rescanned + obj_size;
|
| if ((bytes_rescanned_ >> 20) != (old_bytes_rescanned >> 20)) {
|
| - if (bytes_rescanned_ > 2 * heap_->PromotedSpaceSize()) {
|
| + if (bytes_rescanned_ > 2 * heap_->PromotedSpaceSizeOfObjects()) {
|
| // If we have queued twice the heap size for rescanning then we are
|
| // going around in circles, scanning the same objects again and again
|
| // as the program mutates the heap faster than we can incrementally
|
|
|