[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/+/3899120 Reviewed-by: Dominik 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}
This commit is contained in:
parent
8b87039536
commit
a3230428be
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user