Chromium Code Reviews| Index: src/heap/heap.cc |
| diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
| index 46f62f001d4f2da005586b16de92b8191520458a..2e2953d77a65db233fc53b31c7334986dc8ee84e 100644 |
| --- a/src/heap/heap.cc |
| +++ b/src/heap/heap.cc |
| @@ -1385,6 +1385,8 @@ void Heap::MarkCompact() { |
| gc_state_ = MARK_COMPACT; |
| LOG(isolate_, ResourceEvent("markcompact", "begin")); |
| + new_space()->PauseInlineAllocationObservers(); |
|
Hannes Payer (out of office)
2015/11/26 09:55:10
A scope would be cleaner for pausing and resuming.
ofrobots
2015/12/02 06:05:31
Done.
|
| + |
| uint64_t size_of_objects_before_gc = SizeOfObjects(); |
| mark_compact_collector()->Prepare(); |
| @@ -1402,6 +1404,8 @@ void Heap::MarkCompact() { |
| if (FLAG_allocation_site_pretenuring) { |
| EvaluateOldSpaceLocalPretenuring(size_of_objects_before_gc); |
| } |
| + |
| + new_space()->ResumeInlineAllocationObservers(); |
| } |