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().
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Differential D36284
[sanitizer] Remove use of task_for_pid from sanitizer_stoptheworld_mac.cc kubamracek on Aug 3 2017, 1:37 PM. Authored by
Details 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().
Diff Detail
|