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

Unified Diff: runtime/vm/virtual_memory_fuchsia.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_android.cc ('k') | runtime/vm/virtual_memory_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/virtual_memory_fuchsia.cc
diff --git a/runtime/vm/virtual_memory_fuchsia.cc b/runtime/vm/virtual_memory_fuchsia.cc
index 49b6e4a6571b91c786dfb2bc16d6a244979feb0d..bd78bf98d6f42b6a5e0eb5698a7eaa4a4118a807 100644
--- a/runtime/vm/virtual_memory_fuchsia.cc
+++ b/runtime/vm/virtual_memory_fuchsia.cc
@@ -34,12 +34,10 @@ VirtualMemory* VirtualMemory::ReserveInternal(intptr_t size) {
// TODO(zra): map with PERM_NONE, when that works, and relax with
// Commit and Protect when they are implemented.
// Issue MG-161.
- const int prot = MX_VM_FLAG_PERM_READ |
- MX_VM_FLAG_PERM_WRITE |
- MX_VM_FLAG_PERM_EXECUTE;
+ const int prot =
+ MX_VM_FLAG_PERM_READ | MX_VM_FLAG_PERM_WRITE | MX_VM_FLAG_PERM_EXECUTE;
uintptr_t addr;
- status = mx_process_map_vm(
- mx_process_self(), vmo, 0, size, &addr, prot);
+ status = mx_process_map_vm(mx_process_self(), vmo, 0, size, &addr, prot);
if (status != NO_ERROR) {
mx_handle_close(vmo);
FATAL("VirtualMemory::ReserveInternal FAILED");
@@ -56,8 +54,8 @@ VirtualMemory::~VirtualMemory() {
// TODO(zra): Use reserved_size_.
// Issue MG-162.
uintptr_t addr = reinterpret_cast<uintptr_t>(address());
- mx_status_t status = mx_process_unmap_vm(
- mx_process_self(), addr, 0 /*reserved_size_*/);
+ mx_status_t status =
+ mx_process_unmap_vm(mx_process_self(), addr, 0 /*reserved_size_*/);
if (status != NO_ERROR) {
FATAL("VirtualMemory::~VirtualMemory: unamp FAILED");
}
« no previous file with comments | « runtime/vm/virtual_memory_android.cc ('k') | runtime/vm/virtual_memory_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698