diff options
Diffstat (limited to 'deps/v8/src/heap/cppgc/object-allocator.cc')
-rw-r--r-- | deps/v8/src/heap/cppgc/object-allocator.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/deps/v8/src/heap/cppgc/object-allocator.cc b/deps/v8/src/heap/cppgc/object-allocator.cc index 131ab60401..fdc50d0cab 100644 --- a/deps/v8/src/heap/cppgc/object-allocator.cc +++ b/deps/v8/src/heap/cppgc/object-allocator.cc @@ -110,6 +110,7 @@ void* ObjectAllocator::OutOfLineAllocate(NormalPageSpace* space, size_t size, GCInfoIndex gcinfo) { void* memory = OutOfLineAllocateImpl(space, size, gcinfo); stats_collector_->NotifySafePointForConservativeCollection(); + raw_heap_->heap()->AdvanceIncrementalGarbageCollectionOnAllocationIfNeeded(); return memory; } @@ -136,7 +137,7 @@ void* ObjectAllocator::OutOfLineAllocateImpl(NormalPageSpace* space, // TODO(chromium:1056170): Add lazy sweep. // 4. Complete sweeping. - raw_heap_->heap()->sweeper().Finish(); + raw_heap_->heap()->sweeper().FinishIfRunning(); // 5. Add a new page to this heap. auto* new_page = NormalPage::Create(page_backend_, space); |