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

Unified Diff: util/mach/mach_message_server.cc

Issue 577293002: Use task_t, thread_t, and exception_handler_t uniformly (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 6 years, 3 months 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 | « util/mach/mach_extensions.cc ('k') | util/mach/task_memory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: util/mach/mach_message_server.cc
diff --git a/util/mach/mach_message_server.cc b/util/mach/mach_message_server.cc
index 98e41041750b0310ab1f01da7e75eec1e45f30f6..e79acfe4dcfdd2a472edab863050f522ce992339 100644
--- a/util/mach/mach_message_server.cc
+++ b/util/mach/mach_message_server.cc
@@ -133,8 +133,6 @@ mach_msg_return_t MachMessageServer::Run(Interface* interface,
(options & MACH_SEND_TRAILER) ? (max_reply_size + MAX_TRAILER_SIZE)
: max_reply_size);
- mach_port_t self = mach_task_self();
Mark Mentovai 2014/09/18 16:16:13 This was the only place in bpoop where mach_task_s
-
kern_return_t kr;
do {
@@ -146,7 +144,7 @@ mach_msg_return_t MachMessageServer::Run(Interface* interface,
while (!request_scoper.address()) {
vm_address_t request_addr;
- kr = vm_allocate(self,
+ kr = vm_allocate(mach_task_self(),
&request_addr,
this_request_alloc,
VM_FLAGS_ANYWHERE | VM_MAKE_TAG(VM_MEMORY_MACH_MSG));
@@ -189,7 +187,7 @@ mach_msg_return_t MachMessageServer::Run(Interface* interface,
}
vm_address_t reply_addr;
- kr = vm_allocate(self,
+ kr = vm_allocate(mach_task_self(),
&reply_addr,
reply_alloc,
VM_FLAGS_ANYWHERE | VM_MAKE_TAG(VM_MEMORY_MACH_MSG));
« no previous file with comments | « util/mach/mach_extensions.cc ('k') | util/mach/task_memory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698