diff options
Diffstat (limited to 'deps/v8/test/unittests/heap/cppgc/heap-growing-unittest.cc')
-rw-r--r-- | deps/v8/test/unittests/heap/cppgc/heap-growing-unittest.cc | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/deps/v8/test/unittests/heap/cppgc/heap-growing-unittest.cc b/deps/v8/test/unittests/heap/cppgc/heap-growing-unittest.cc index 39d6cb3b94..17ab9680c9 100644 --- a/deps/v8/test/unittests/heap/cppgc/heap-growing-unittest.cc +++ b/deps/v8/test/unittests/heap/cppgc/heap-growing-unittest.cc @@ -60,7 +60,8 @@ void FakeAllocate(StatsCollector* stats_collector, size_t bytes) { } // namespace TEST(HeapGrowingTest, ConservativeGCInvoked) { - StatsCollector stats_collector; + StatsCollector stats_collector(nullptr /* metric_recorder */, + nullptr /* platform */); MockGarbageCollector gc; cppgc::Heap::ResourceConstraints constraints; // Force GC at the first update. @@ -73,7 +74,8 @@ TEST(HeapGrowingTest, ConservativeGCInvoked) { } TEST(HeapGrowingTest, InitialHeapSize) { - StatsCollector stats_collector; + StatsCollector stats_collector(nullptr /* metric_recorder */, + nullptr /* platform */); MockGarbageCollector gc; cppgc::Heap::ResourceConstraints constraints; // Use larger size to avoid running into small heap optimizations. @@ -90,7 +92,8 @@ TEST(HeapGrowingTest, InitialHeapSize) { TEST(HeapGrowingTest, ConstantGrowingFactor) { // Use larger size to avoid running into small heap optimizations. constexpr size_t kObjectSize = 10 * HeapGrowing::kMinLimitIncrease; - StatsCollector stats_collector; + StatsCollector stats_collector(nullptr /* metric_recorder */, + nullptr /* platform */); FakeGarbageCollector gc(&stats_collector); cppgc::Heap::ResourceConstraints constraints; // Force GC at the first update. @@ -108,7 +111,8 @@ TEST(HeapGrowingTest, ConstantGrowingFactor) { TEST(HeapGrowingTest, SmallHeapGrowing) { // Larger constant to avoid running into special handling for smaller heaps. constexpr size_t kLargeAllocation = 100 * kMB; - StatsCollector stats_collector; + StatsCollector stats_collector(nullptr /* metric_recorder */, + nullptr /* platform */); FakeGarbageCollector gc(&stats_collector); cppgc::Heap::ResourceConstraints constraints; // Force GC at the first update. @@ -124,7 +128,8 @@ TEST(HeapGrowingTest, SmallHeapGrowing) { } TEST(HeapGrowingTest, IncrementalGCStarted) { - StatsCollector stats_collector; + StatsCollector stats_collector(nullptr /* metric_recorder */, + nullptr /* platform */); MockGarbageCollector gc; cppgc::Heap::ResourceConstraints constraints; HeapGrowing growing(&gc, &stats_collector, constraints, @@ -137,7 +142,8 @@ TEST(HeapGrowingTest, IncrementalGCStarted) { } TEST(HeapGrowingTest, IncrementalGCFinalized) { - StatsCollector stats_collector; + StatsCollector stats_collector(nullptr /* metric_recorder */, + nullptr /* platform */); MockGarbageCollector gc; cppgc::Heap::ResourceConstraints constraints; HeapGrowing growing(&gc, &stats_collector, constraints, |