[PATCH] D36284: [sanitizer] Remove use of task_for_pid from sanitizer_stoptheworld_mac.cc
Phabricator via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 7 11:08:13 PDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL310271: [sanitizer] Remove use of task_for_pid from sanitizer_stoptheworld_mac.cc (authored by kuba.brecka).
Changed prior to commit:
https://reviews.llvm.org/D36284?vs=109623&id=110031#toc
Repository:
rL LLVM
https://reviews.llvm.org/D36284
Files:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_stoptheworld_mac.cc
Index: compiler-rt/trunk/lib/sanitizer_common/sanitizer_stoptheworld_mac.cc
===================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_stoptheworld_mac.cc
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_stoptheworld_mac.cc
@@ -55,17 +55,9 @@
struct RunThreadArgs *run_args = (struct RunThreadArgs *)arg;
SuspendedThreadsListMac suspended_threads_list;
- mach_port_t task;
- kern_return_t err = task_for_pid(mach_task_self(), internal_getpid(), &task);
- if (err != KERN_SUCCESS) {
- VReport(1, "Getting task from pid failed (errno %d).\n", err);
- return;
- }
-
thread_array_t threads;
mach_msg_type_number_t num_threads;
-
- err = task_threads(task, &threads, &num_threads);
+ kern_return_t err = task_threads(mach_task_self(), &threads, &num_threads);
if (err != KERN_SUCCESS) {
VReport(1, "Failed to get threads for task (errno %d).\n", err);
return;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36284.110031.patch
Type: text/x-patch
Size: 960 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170807/22a033fb/attachment.bin>
More information about the llvm-commits
mailing list