summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86ISelLowering.cpp
diff options
context:
space:
mode:
authorSergey Matveev <earthdok@google.com>2014-12-05 00:10:15 +0000
committerSergey Matveev <earthdok@google.com>2014-12-05 00:10:15 +0000
commitb029c5101fb49b3577a1c322f42ef9fc616f25bf (patch)
tree0f16aa7b15ad920a000d1784de053a3a753ba729 /llvm/lib/Target/X86/X86ISelLowering.cpp
parent439835a6fed49ed788c3bec215848cbcb3f7f6fe (diff)
downloadbcm5719-llvm-b029c5101fb49b3577a1c322f42ef9fc616f25bf.tar.gz
bcm5719-llvm-b029c5101fb49b3577a1c322f42ef9fc616f25bf.zip
[ASan, LSan] Improve tracking of thread creation.
In the current scheme of things, the call to ThreadStart() in the child thread is not synchronized with the parent thread. So, if a pointer is passed to pthread_create, there may be a window of time during which this pointer will not be discoverable by LSan. I.e. the pthread_create interceptor has already returneed and thus the pointer is no longer on the parent stack, but we don't yet know the location of the child stack. This has caused bogus leak reports (see http://llvm.org/bugs/show_bug.cgi?id=21621/). This patch makes the pthread_create interceptor wait until the child thread is properly registered before returning. llvm-svn: 223419
Diffstat (limited to 'llvm/lib/Target/X86/X86ISelLowering.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud