Commit b8260a8e by David Stevens

[fuchsia] Remove deprecated non-resizable vmo flag

Vmos are now non-resizable by default, so the non-resizable flag is no longer necessary and will be removed. Change-Id: I6752d414e59d651dbd4d95f815d6ecbac3e6eb6b Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/32708Reviewed-by: 's avatarWez <wez@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Tested-by: 's avatarDavid Stevens <stevensd@google.com>
parent 3c73507d
...@@ -218,7 +218,7 @@ void *allocateExecutable(size_t bytes) ...@@ -218,7 +218,7 @@ void *allocateExecutable(size_t bytes)
} }
#elif defined(__Fuchsia__) #elif defined(__Fuchsia__)
zx_handle_t vmo; zx_handle_t vmo;
if (zx_vmo_create(length, ZX_VMO_NON_RESIZABLE, &vmo) != ZX_OK) { if (zx_vmo_create(length, 0, &vmo) != ZX_OK) {
return nullptr; return nullptr;
} }
if (zx_vmo_replace_as_executable(vmo, ZX_HANDLE_INVALID, &vmo) != ZX_OK) { if (zx_vmo_replace_as_executable(vmo, ZX_HANDLE_INVALID, &vmo) != ZX_OK) {
......
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