summaryrefslogtreecommitdiff
path: root/deps/v8/test/unittests/heap/cppgc/stats-collector-scopes-unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/unittests/heap/cppgc/stats-collector-scopes-unittest.cc')
-rw-r--r--deps/v8/test/unittests/heap/cppgc/stats-collector-scopes-unittest.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/deps/v8/test/unittests/heap/cppgc/stats-collector-scopes-unittest.cc b/deps/v8/test/unittests/heap/cppgc/stats-collector-scopes-unittest.cc
index 9e23cb5681..cd0b49a9c9 100644
--- a/deps/v8/test/unittests/heap/cppgc/stats-collector-scopes-unittest.cc
+++ b/deps/v8/test/unittests/heap/cppgc/stats-collector-scopes-unittest.cc
@@ -68,8 +68,9 @@ class V8_NODISCARD CppgcTracingScopesTest : public testing::TestWithHeap {
Config config = {Config::CollectionType::kMajor,
Config::StackState::kNoHeapPointers,
Config::MarkingType::kIncremental};
- GetMarkerRef() = MarkerFactory::CreateAndStartMarking<Marker>(
+ GetMarkerRef() = std::make_unique<Marker>(
Heap::From(GetHeap())->AsBase(), GetPlatformHandle().get(), config);
+ GetMarkerRef()->StartMarking();
DelegatingTracingControllerImpl::check_expectations = true;
}