Index: runtime/vm/virtual_memory_macos.cc |
diff --git a/runtime/vm/virtual_memory_macos.cc b/runtime/vm/virtual_memory_macos.cc |
index 484ad7876616fda5d25850acc08d68711fe162d0..6f42b558e9a42c5bf3e2629b76ff80e215c42583 100644 |
--- a/runtime/vm/virtual_memory_macos.cc |
+++ b/runtime/vm/virtual_memory_macos.cc |
@@ -8,7 +8,7 @@ |
#include "vm/virtual_memory.h" |
#include <sys/mman.h> // NOLINT |
-#include <unistd.h> // NOLINT |
+#include <unistd.h> // NOLINT |
#include "platform/assert.h" |
#include "platform/utils.h" |
@@ -33,8 +33,7 @@ void VirtualMemory::InitOnce() { |
VirtualMemory* VirtualMemory::ReserveInternal(intptr_t size) { |
ASSERT((size & (PageSize() - 1)) == 0); |
void* address = mmap(NULL, size, PROT_NONE, |
- MAP_PRIVATE | MAP_ANON | MAP_NORESERVE, |
- -1, 0); |
+ MAP_PRIVATE | MAP_ANON | MAP_NORESERVE, -1, 0); |
if (address == MAP_FAILED) { |
return NULL; |
} |
@@ -72,8 +71,7 @@ bool VirtualMemory::Commit(uword addr, intptr_t size, bool executable) { |
ASSERT(Contains(addr + size) || (addr + size == end())); |
int prot = PROT_READ | PROT_WRITE | (executable ? PROT_EXEC : 0); |
void* address = mmap(reinterpret_cast<void*>(addr), size, prot, |
- MAP_PRIVATE | MAP_ANON | MAP_FIXED, |
- -1, 0); |
+ MAP_PRIVATE | MAP_ANON | MAP_FIXED, -1, 0); |
if (address == MAP_FAILED) { |
return false; |
} |
@@ -106,8 +104,7 @@ bool VirtualMemory::Protect(void* address, intptr_t size, Protection mode) { |
break; |
} |
return (mprotect(reinterpret_cast<void*>(page_address), |
- end_address - page_address, |
- prot) == 0); |
+ end_address - page_address, prot) == 0); |
} |
} // namespace dart |