diff options
author | Derek Bruening <bruening@google.com> | 2016-06-08 00:00:27 +0000 |
---|---|---|
committer | Derek Bruening <bruening@google.com> | 2016-06-08 00:00:27 +0000 |
commit | 61be7625b64a12917039725cfd8969e218706c8a (patch) | |
tree | 4d499095ae05cbcae78f573c196fae7eda224260 /lib/profile/InstrProfilingUtil.c | |
parent | 29078f9b2cb5a3985b84b5fd117b242b259934d6 (diff) |
[esan] Intercept calloc to avoid deadlocks with tcmalloc
Summary:
When tcmalloc initializes before esan, esan's initialization ends up
calling back into tcmalloc due to the calloc done by dlsym. This results
in a deadlock. We avoid this by special-casing this single allocation.
Intercepting calloc also gives us the opportunity to act on its zeroing as
stores by the application.
Reviewers: aizatsky
Subscribers: vitalybuka, zhaoqin, kcc, eugenis, llvm-commits, kubabrecka
Differential Revision: http://reviews.llvm.org/D21086
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@272076 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/profile/InstrProfilingUtil.c')
0 files changed, 0 insertions, 0 deletions