[fuchsia] Migrate from protect2 to protect
These functions do the same thing, but Fuchsia will eventually remove support for protect2. Change-Id: I9f2b4153efa2f78238eb020e9f422f666ae5b7bb Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2743635 Auto-Submit: Adam Barth <abarth@chromium.org> Commit-Queue: Victor Gomes <victorgomes@chromium.org> Reviewed-by: Victor Gomes <victorgomes@chromium.org> Cr-Commit-Position: refs/heads/master@{#73287}
This commit is contained in:
parent
ae8823217d
commit
e2ce0eb4c1
@ -121,7 +121,7 @@ bool OS::SetPermissions(void* address, size_t size, MemoryPermission access) {
|
||||
DCHECK_EQ(0, reinterpret_cast<uintptr_t>(address) % CommitPageSize());
|
||||
DCHECK_EQ(0, size % CommitPageSize());
|
||||
uint32_t prot = GetProtectionFromMemoryPermission(access);
|
||||
return zx::vmar::root_self()->protect2(
|
||||
return zx::vmar::root_self()->protect(
|
||||
prot, reinterpret_cast<uintptr_t>(address), size) == ZX_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user