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 | ff5cafa2eca518617854b74810932ddda7185f4d (patch) | |
tree | 1ac612ecfb8b466eaaf41eb736a69256df07175b /lldb/packages/Python/lldbsuite/test/python_api/interpreter/TestCommandInterpreterAPI.py | |
parent | f14a74c10253116670004c24813b340cb1f36a3f (diff) | |
download | bcm5719-llvm-ff5cafa2eca518617854b74810932ddda7185f4d.tar.gz bcm5719-llvm-ff5cafa2eca518617854b74810932ddda7185f4d.zip |
[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
llvm-svn: 272076
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/interpreter/TestCommandInterpreterAPI.py')
0 files changed, 0 insertions, 0 deletions