Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(317)

Unified Diff: runtime/vm/virtual_memory_linux.cc

Issue 2481873005: clang-format runtime/vm (Closed)
Patch Set: Merge Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/virtual_memory_fuchsia.cc ('k') | runtime/vm/virtual_memory_macos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/virtual_memory_linux.cc
diff --git a/runtime/vm/virtual_memory_linux.cc b/runtime/vm/virtual_memory_linux.cc
index 0228f68d975ca318ff6727f7e1a20a85d88a9e2c..be3655fdbe6ef7e8a8523ca0c19d9ae0e1ebd628 100644
--- a/runtime/vm/virtual_memory_linux.cc
+++ b/runtime/vm/virtual_memory_linux.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"
@@ -32,8 +32,7 @@ void VirtualMemory::InitOnce() {
VirtualMemory* VirtualMemory::ReserveInternal(intptr_t size) {
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;
}
@@ -71,8 +70,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;
}
@@ -105,8 +103,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);
}
« no previous file with comments | « runtime/vm/virtual_memory_fuchsia.cc ('k') | runtime/vm/virtual_memory_macos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698