Default to disabling the libunwind frameheader cache.
authorSterling Augustine <saugustine@google.com>
Tue, 18 Aug 2020 19:05:07 +0000 (12:05 -0700)
committerSterling Augustine <saugustine@google.com>
Tue, 18 Aug 2020 21:37:36 +0000 (14:37 -0700)
commita20f5fe70810e0a768c1814d69d10862965c21e4
tree983013cc05b8cf8e6a34c7f4edc948f785d2a322
parent9028c03ce602eb217e35288d510ed93306d136af
Default to disabling the libunwind frameheader cache.

Although it works fine with glibc, as currently implemented the
frameheader cache is incompatible with certain platforms with
slightly different locking semantics inside dl_iterate_phdr.

Therefore only enable it when it is turned on explicitly with
a configure-time option.

Differential Revision: https://reviews.llvm.org/D86163
libunwind/CMakeLists.txt
libunwind/src/AddressSpace.hpp
libunwind/test/frameheadercache_test.pass.cpp