From e2ce0eb4c1b40063261e87d6265e7e5c97e0ff30 Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Mon, 8 Mar 2021 19:16:31 +0000 Subject: [PATCH] [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 Commit-Queue: Victor Gomes Reviewed-by: Victor Gomes Cr-Commit-Position: refs/heads/master@{#73287} --- src/base/platform/platform-fuchsia.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/platform/platform-fuchsia.cc b/src/base/platform/platform-fuchsia.cc index dd34d69f57..9538d81671 100644 --- a/src/base/platform/platform-fuchsia.cc +++ b/src/base/platform/platform-fuchsia.cc @@ -121,7 +121,7 @@ bool OS::SetPermissions(void* address, size_t size, MemoryPermission access) { DCHECK_EQ(0, reinterpret_cast(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(address), size) == ZX_OK; }