| Index: runtime/vm/virtual_memory_fuchsia.cc
|
| diff --git a/runtime/vm/virtual_memory_fuchsia.cc b/runtime/vm/virtual_memory_fuchsia.cc
|
| index ec84ad271ad21bf6a1dfc82867648c9f7434d5af..3cafd55a930a078fc537ef8017251465f086966a 100644
|
| --- a/runtime/vm/virtual_memory_fuchsia.cc
|
| +++ b/runtime/vm/virtual_memory_fuchsia.cc
|
| @@ -201,7 +201,10 @@ bool VirtualMemory::FreeSubSegment(int32_t handle,
|
| }
|
|
|
|
|
| -bool VirtualMemory::Commit(uword addr, intptr_t size, bool executable) {
|
| +bool VirtualMemory::Commit(uword addr,
|
| + intptr_t size,
|
| + bool executable,
|
| + const char* name) {
|
| ASSERT(Contains(addr));
|
| ASSERT(Contains(addr + size) || (addr + size == end()));
|
| mx_handle_t vmo = MX_HANDLE_INVALID;
|
| @@ -212,6 +215,10 @@ bool VirtualMemory::Commit(uword addr, intptr_t size, bool executable) {
|
| return false;
|
| }
|
|
|
| + if (name != NULL) {
|
| + mx_object_set_property(vmo, MX_PROP_NAME, name, strlen(name));
|
| + }
|
| +
|
| mx_handle_t vmar = static_cast<mx_handle_t>(handle());
|
| const size_t offset = addr - start();
|
| const uint32_t flags = MX_VM_FLAG_SPECIFIC | MX_VM_FLAG_PERM_READ |
|
|
|