cppgc: young-gen: Join concurrent marking for young GC cycles

Bug: chromium:1029379
Change-Id: I34e988c0e14441afe821a35505c4ce3f1eee8fc4
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3584118
Reviewed-by: Michael Lippautz <mlippautz@chromium.org>
Commit-Queue: Anton Bikineev <bikineev@chromium.org>
Cr-Commit-Position: refs/heads/main@{#79974}
This commit is contained in:
Anton Bikineev 2022-04-13 19:47:35 +02:00 committed by V8 LUCI CQ
parent f4d4821006
commit 8893946c21

View File

@ -698,7 +698,10 @@ void CppHeap::RunMinorGC(StackState stack_state) {
StartTracing();
// TODO(chromium:1029379): Should be safe to run without stack.
EnterFinalPause(cppgc::EmbedderStackState::kMayContainHeapPointers);
AdvanceTracing(std::numeric_limits<double>::infinity());
CHECK(AdvanceTracing(std::numeric_limits<double>::infinity()));
if (FinishConcurrentMarkingIfNeeded()) {
CHECK(AdvanceTracing(std::numeric_limits<double>::infinity()));
}
TraceEpilogue();
}