Commit 7e8b4bb6 authored by Anton Bikineev's avatar Anton Bikineev Committed by V8 LUCI CQ

cppgc: young-gen: Fix gcc build failure

Old gcc versions (< gcc-8) have problems with parameter packs in
capture-lists wrapped in fold-expressions.

Bug: chromium:1029379
Change-Id: I0c0ee7caa2d750f551e93fdfeb2667328bee4acb
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3627594
Commit-Queue: Anton Bikineev <bikineev@chromium.org>
Reviewed-by: 's avatarLeszek Swirski <leszeks@chromium.org>
Auto-Submit: Anton Bikineev <bikineev@chromium.org>
Commit-Queue: Leszek Swirski <leszeks@chromium.org>
Cr-Commit-Position: refs/heads/main@{#80356}
parent 3085de9b
......@@ -109,9 +109,9 @@ TYPED_TEST_SUITE(MinorGCTestForType, ObjectTypes);
namespace {
template <typename... Args>
void RunMinorGCAndExpectObjectsPromoted(MinorGCTest& test, Args*... args) {
([args] { EXPECT_TRUE(IsHeapObjectYoung(args)); }(), ...);
EXPECT_TRUE((IsHeapObjectYoung(args) && ...));
test.CollectMinor();
([args] { EXPECT_TRUE(IsHeapObjectOld(args)); }(), ...);
EXPECT_TRUE((IsHeapObjectOld(args) && ...));
}
struct ExpectRememberedSlotsAdded final {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment