| Index: src/heap/heap-inl.h
|
| diff --git a/src/heap/heap-inl.h b/src/heap/heap-inl.h
|
| index afe107fe35ee71f4bb3fd3cf1e36be2915d07e05..e31d3d6859b4630677794d4062c0053b67eb4bb5 100644
|
| --- a/src/heap/heap-inl.h
|
| +++ b/src/heap/heap-inl.h
|
| @@ -251,6 +251,12 @@ AllocationResult Heap::AllocateRaw(int size_in_bytes, AllocationSpace space,
|
| } else {
|
| old_gen_exhausted_ = true;
|
| }
|
| +
|
| + if (!old_gen_exhausted_ && incremental_marking()->black_allocation() &&
|
| + space != OLD_SPACE) {
|
| + Marking::MarkBlack(Marking::MarkBitFrom(object));
|
| + MemoryChunk::IncrementLiveBytesFromGC(object, size_in_bytes);
|
| + }
|
| return allocation;
|
| }
|
|
|
|
|