diff options
author | Aaron Puchert <aaronpuchert@alice-dsl.net> | 2018-10-03 11:58:19 +0000 |
---|---|---|
committer | Aaron Puchert <aaronpuchert@alice-dsl.net> | 2018-10-03 11:58:19 +0000 |
commit | 7146b0032fa4f713da5e199e4b96cfa84a630119 (patch) | |
tree | 20c1321ca8f440fba0700fc4e32a5636315a73cc /lldb/source/Plugins/Process/Linux/NativeProcessLinux.h | |
parent | d5a39553ff3eafaab675e581d973f700a4d7a6b5 (diff) | |
download | bcm5719-llvm-7146b0032fa4f713da5e199e4b96cfa84a630119.tar.gz bcm5719-llvm-7146b0032fa4f713da5e199e4b96cfa84a630119.zip |
Thread safety analysis: Unwrap __builtin_expect in getTrylockCallExpr
Summary:
When people are really sure they'll get the lock they sometimes use
__builtin_expect. It's also used by some assertion implementations.
Asserting that try-lock succeeded is basically the same as asserting
that the lock is not held by anyone else (and acquiring it).
Reviewers: aaron.ballman, delesley
Reviewed By: aaron.ballman
Subscribers: kristina, cfe-commits
Differential Revision: https://reviews.llvm.org/D52398
llvm-svn: 343681
Diffstat (limited to 'lldb/source/Plugins/Process/Linux/NativeProcessLinux.h')
0 files changed, 0 insertions, 0 deletions