[sanitizer] Remove use of task_for_pid from sanitizer_stoptheworld_mac.cc
authorKuba Mracek <mracek@apple.com>
Mon, 7 Aug 2017 18:07:20 +0000 (18:07 +0000)
committerKuba Mracek <mracek@apple.com>
Mon, 7 Aug 2017 18:07:20 +0000 (18:07 +0000)
commitb0d208a0abdfedf12dd981453620a7a01d3e076f
tree89d2815aeec5f90a113ec9bd0e736c49445987e3
parenta8af18ac1d3f403d2315b8d34bbc845949995443
[sanitizer] Remove use of task_for_pid from sanitizer_stoptheworld_mac.cc

Using task_for_pid to get the "self" task is not necessary, and it can fail (e.g. for sandboxed processes). Let's just use mach_task_self().

Differential Revision: https://reviews.llvm.org/D36284

llvm-svn: 310271
compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_mac.cc