Commit 25601fb9 authored by Leszek Swirski's avatar Leszek Swirski Committed by V8 LUCI CQ

[zone] Fix initial position rounding

Fixed: chromium:1279383
Change-Id: I0fb6e15d47698b90c51cc27e18a526ba6d0fc1d1
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3338656
Commit-Queue: Leszek Swirski <leszeks@chromium.org>
Auto-Submit: Leszek Swirski <leszeks@chromium.org>
Reviewed-by: 's avatarToon Verwaest <verwaest@chromium.org>
Cr-Commit-Position: refs/heads/main@{#78364}
parent 79a9d2eb
......@@ -90,9 +90,9 @@ void Zone::Reset() {
keep->ZapContents();
segment_head_ = keep;
position_ = keep->start();
position_ = RoundUp(keep->start(), kAlignmentInBytes);
limit_ = keep->end();
DCHECK_EQ(allocation_size(), 0);
DCHECK_LT(allocation_size(), kAlignmentInBytes);
DCHECK_EQ(segment_bytes_allocated_, keep->total_size());
}
......
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