[compiler-rt] r350488 - [compiler-rt][Fuchsia] Replace _zx_vmar_allocate_old call

Petr Hosek via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 5 21:19:05 PST 2019


Author: phosek
Date: Sat Jan  5 21:19:05 2019
New Revision: 350488

URL: http://llvm.org/viewvc/llvm-project?rev=350488&view=rev
Log:
[compiler-rt][Fuchsia] Replace _zx_vmar_allocate_old call

This is the deprecated legacy interface, replace it with the current
_zx_vmar_allocate one.

Differential Revision: https://reviews.llvm.org/D56360

Modified:
    compiler-rt/trunk/lib/sanitizer_common/sanitizer_fuchsia.cc

Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_fuchsia.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_fuchsia.cc?rev=350488&r1=350487&r2=350488&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_fuchsia.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_fuchsia.cc Sat Jan  5 21:19:05 2019
@@ -210,10 +210,10 @@ uptr ReservedAddressRange::Init(uptr ini
   uintptr_t base;
   zx_handle_t vmar;
   zx_status_t status =
-      _zx_vmar_allocate_old(_zx_vmar_root_self(), 0, init_size,
-                            ZX_VM_FLAG_CAN_MAP_READ | ZX_VM_FLAG_CAN_MAP_WRITE |
-                                ZX_VM_FLAG_CAN_MAP_SPECIFIC,
-                            &vmar, &base);
+      _zx_vmar_allocate(
+          _zx_vmar_root_self(),
+          ZX_VM_CAN_MAP_READ | ZX_VM_CAN_MAP_WRITE | ZX_VM_CAN_MAP_SPECIFIC,
+          0, init_size, &vmar, &base);
   if (status != ZX_OK)
     ReportMmapFailureAndDie(init_size, name, "zx_vmar_allocate", status);
   base_ = reinterpret_cast<void *>(base);




More information about the llvm-commits mailing list