Commit a3230428 authored by Omer Katz's avatar Omer Katz Committed by V8 LUCI CQ

[heap] Fix bad cast in sweeper.cc

Bug: v8:12612, chromium:1364517
Change-Id: Id1e23d0ad0a786a01a432552937e1b6c6494bd9e
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3899120Reviewed-by: 's avatarDominik Inführ <dinfuehr@chromium.org>
Commit-Queue: Omer Katz <omerkatz@chromium.org>
Commit-Queue: Dominik Inführ <dinfuehr@chromium.org>
Auto-Submit: Omer Katz <omerkatz@chromium.org>
Cr-Commit-Position: refs/heads/main@{#83255}
parent 8b870395
......@@ -268,8 +268,8 @@ V8_INLINE size_t Sweeper::FreeAndProcessFreedMemory(
ZapCode(free_start, size);
}
page->heap()->CreateFillerObjectAtSweeper(free_start, static_cast<int>(size));
freed_bytes =
reinterpret_cast<PagedSpace*>(space)->UnaccountedFree(free_start, size);
freed_bytes = reinterpret_cast<PagedSpaceBase*>(space)->UnaccountedFree(
free_start, size);
if (should_reduce_memory_) page->DiscardUnusedMemory(free_start, size);
return freed_bytes;
......
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