Commit f1f7cafe authored by Michael Lippautz's avatar Michael Lippautz Committed by V8 LUCI CQ

Fix TrackBumpPointerAllocations for single generation

Single generation doesn't have a young generation, so we cannot check
whether it's inline allocation is enabled.

Bug: v8:12615
Change-Id: I145e7c3ff225dc0099136289c9aef4ddd28b3578
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3487993
Auto-Submit: Michael Lippautz <mlippautz@chromium.org>
Reviewed-by: 's avatarDominik Inführ <dinfuehr@chromium.org>
Commit-Queue: Dominik Inführ <dinfuehr@chromium.org>
Cr-Commit-Position: refs/heads/main@{#79316}
parent 9fad5990
......@@ -3000,7 +3000,8 @@ TEST(TrackBumpPointerAllocations) {
// Now check that not all allocations are tracked if we manually reenable
// inline allocations.
CHECK(!CcTest::heap()->new_space()->IsInlineAllocationEnabled());
CHECK(i::FLAG_single_generation ||
!CcTest::heap()->new_space()->IsInlineAllocationEnabled());
CcTest::heap()->EnableInlineAllocation();
CompileRun(inline_heap_allocation_source);
......
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