| Index: runtime/vm/virtual_memory_fuchsia.cc
|
| diff --git a/runtime/vm/virtual_memory_fuchsia.cc b/runtime/vm/virtual_memory_fuchsia.cc
|
| index db6504f242015338191789a584f482dc88cc6e1b..6688c543122fedafe79ecdf6ad8e15e0f09dc601 100644
|
| --- a/runtime/vm/virtual_memory_fuchsia.cc
|
| +++ b/runtime/vm/virtual_memory_fuchsia.cc
|
| @@ -90,7 +90,6 @@ void VmarList::AddVmar(mx_handle_t vmar, uword addr, intptr_t size) {
|
| vmar_array_.InsertAt(idx, new_mapping);
|
| }
|
|
|
| -
|
| intptr_t VmarList::LookupVmarIndexLocked(uword addr) {
|
| // Binary search for the vmar containing addr.
|
| intptr_t imin = 0;
|
| @@ -109,7 +108,6 @@ intptr_t VmarList::LookupVmarIndexLocked(uword addr) {
|
| return -1;
|
| }
|
|
|
| -
|
| mx_handle_t VmarList::LookupVmar(uword addr) {
|
| MutexLocker ml(vmar_array_lock_);
|
| LOG_INFO("LookupVmar(%lx)\n", addr);
|
| @@ -122,7 +120,6 @@ mx_handle_t VmarList::LookupVmar(uword addr) {
|
| return vmar_array_[idx].vmar;
|
| }
|
|
|
| -
|
| void VmarList::RemoveVmar(uword addr) {
|
| MutexLocker ml(vmar_array_lock_);
|
| LOG_INFO("RemoveVmar(%lx)\n", addr);
|
| @@ -143,15 +140,12 @@ void VmarList::RemoveVmar(uword addr) {
|
| vmar_array_.RemoveLast();
|
| }
|
|
|
| -
|
| uword VirtualMemory::page_size_ = 0;
|
|
|
| -
|
| void VirtualMemory::InitOnce() {
|
| page_size_ = getpagesize();
|
| }
|
|
|
| -
|
| VirtualMemory* VirtualMemory::ReserveInternal(intptr_t size) {
|
| ASSERT(Utils::IsAligned(size, page_size_));
|
| mx_handle_t vmar = MX_HANDLE_INVALID;
|
| @@ -171,7 +165,6 @@ VirtualMemory* VirtualMemory::ReserveInternal(intptr_t size) {
|
| return new VirtualMemory(region, vmar);
|
| }
|
|
|
| -
|
| VirtualMemory::~VirtualMemory() {
|
| if (vm_owns_region()) {
|
| mx_handle_t vmar = static_cast<mx_handle_t>(handle());
|
| @@ -187,7 +180,6 @@ VirtualMemory::~VirtualMemory() {
|
| }
|
| }
|
|
|
| -
|
| bool VirtualMemory::FreeSubSegment(int32_t handle,
|
| void* address,
|
| intptr_t size) {
|
| @@ -201,7 +193,6 @@ bool VirtualMemory::FreeSubSegment(int32_t handle,
|
| return true;
|
| }
|
|
|
| -
|
| bool VirtualMemory::Commit(uword addr,
|
| intptr_t size,
|
| bool executable,
|
| @@ -245,7 +236,6 @@ bool VirtualMemory::Commit(uword addr,
|
| return true;
|
| }
|
|
|
| -
|
| bool VirtualMemory::Protect(void* address, intptr_t size, Protection mode) {
|
| ASSERT(Thread::Current()->IsMutatorThread() ||
|
| Isolate::Current()->mutator_thread()->IsAtSafepoint());
|
|
|