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

cppgc: Check success of permissions update in FreePages

Bug: chromium:1249752
Change-Id: I18dee16c13f504f6669395f0ce4a753177aec9f5
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3165059
Commit-Queue: Omer Katz <omerkatz@chromium.org>
Commit-Queue: Michael Lippautz <mlippautz@chromium.org>
Auto-Submit: Omer Katz <omerkatz@chromium.org>
Reviewed-by: 's avatarMichael Lippautz <mlippautz@chromium.org>
Cr-Commit-Position: refs/heads/main@{#76880}
parent 614761c3
......@@ -61,7 +61,7 @@ class CppgcBoundedPageAllocator final : public v8::base::BoundedPageAllocator {
// contents. To mitigate this problem, CppgcBoundedPageAllocator clears all
// pages before they are freed. This also includes protected guard pages, so
// CppgcBoundedPageAllocator needs to update permissions before clearing.
SetPermissions(address, size, Permission::kReadWrite);
CHECK(SetPermissions(address, size, Permission::kReadWrite));
memset(address, 0, size);
return v8::base::BoundedPageAllocator::FreePages(address, 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