[all-commits] [llvm/llvm-project] 561fa8: [scudo][standalone] Allow sched_getaffinity to fail
Kostya Kortchinsky via All-commits
all-commits at lists.llvm.org
Tue Jan 21 11:20:16 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 561fa844777c1bd9c0c6937be272e6ea73ff94f6
https://github.com/llvm/llvm-project/commit/561fa844777c1bd9c0c6937be272e6ea73ff94f6
Author: Kostya Kortchinsky <kostyak at google.com>
Date: 2020-01-21 (Tue, 21 Jan 2020)
Changed paths:
M compiler-rt/lib/scudo/standalone/common.h
M compiler-rt/lib/scudo/standalone/linux.cpp
M compiler-rt/lib/scudo/standalone/tsd_shared.h
Log Message:
-----------
[scudo][standalone] Allow sched_getaffinity to fail
Summary:
In some configuration, `sched_getaffinity` can fail. Some reasons for
that being the lack of `CAP_SYS_NICE` capability or some syscall
filtering and so on.
This should not be fatal to the allocator, so in this situation, we
will fallback to the `MaxTSDCount` value specified in the allocator
configuration.
Reviewers: cferris, eugenis, hctim, morehouse, pcc
Subscribers: #sanitizers, llvm-commits
Tags: #sanitizers, #llvm
Differential Revision: https://reviews.llvm.org/D73055
More information about the All-commits
mailing list