Index: runtime/vm/virtual_memory_macos.cc |
diff --git a/runtime/vm/virtual_memory_macos.cc b/runtime/vm/virtual_memory_macos.cc |
index 25236da65a5dcaa1fc1bbdfab845be9c8ca9f8f8..675afeb3cfb1fa71e03db4ae835f76e05dd0385a 100644 |
--- a/runtime/vm/virtual_memory_macos.cc |
+++ b/runtime/vm/virtual_memory_macos.cc |
@@ -24,12 +24,10 @@ namespace dart { |
uword VirtualMemory::page_size_ = 0; |
- |
void VirtualMemory::InitOnce() { |
page_size_ = getpagesize(); |
} |
- |
VirtualMemory* VirtualMemory::ReserveInternal(intptr_t size) { |
ASSERT((size & (PageSize() - 1)) == 0); |
void* address = mmap(NULL, size, PROT_NONE, |
@@ -41,7 +39,6 @@ VirtualMemory* VirtualMemory::ReserveInternal(intptr_t size) { |
return new VirtualMemory(region); |
} |
- |
static void unmap(void* address, intptr_t size) { |
if (size == 0) { |
return; |
@@ -52,14 +49,12 @@ static void unmap(void* address, intptr_t size) { |
} |
} |
- |
VirtualMemory::~VirtualMemory() { |
if (vm_owns_region()) { |
unmap(address(), reserved_size_); |
} |
} |
- |
bool VirtualMemory::FreeSubSegment(int32_t handle, |
void* address, |
intptr_t size) { |
@@ -67,7 +62,6 @@ bool VirtualMemory::FreeSubSegment(int32_t handle, |
return true; |
} |
- |
bool VirtualMemory::Commit(uword addr, |
intptr_t size, |
bool executable, |
@@ -83,7 +77,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()); |