summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/projects/libunwind/src/UnwindCursor.hpp
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2016-01-04 21:41:02 +0000
committeremaste <emaste@FreeBSD.org>2016-01-04 21:41:02 +0000
commit91c4e15931d56434d3b8f262a3ebf2e91927838e (patch)
tree13db1e452d72d87c8332bed56b285d7a44037976 /contrib/llvm/projects/libunwind/src/UnwindCursor.hpp
parent0375989a078c9312a43b492e178a65aa477dcab3 (diff)
downloadFreeBSD-src-91c4e15931d56434d3b8f262a3ebf2e91927838e.zip
FreeBSD-src-91c4e15931d56434d3b8f262a3ebf2e91927838e.tar.gz
Merge LLVM libunwind revision 256779
Diffstat (limited to 'contrib/llvm/projects/libunwind/src/UnwindCursor.hpp')
-rw-r--r--contrib/llvm/projects/libunwind/src/UnwindCursor.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/llvm/projects/libunwind/src/UnwindCursor.hpp b/contrib/llvm/projects/libunwind/src/UnwindCursor.hpp
index 040d13e..9068316 100644
--- a/contrib/llvm/projects/libunwind/src/UnwindCursor.hpp
+++ b/contrib/llvm/projects/libunwind/src/UnwindCursor.hpp
@@ -114,6 +114,7 @@ typename A::pint_t DwarfFDECache<A>::findFDE(pint_t mh, pint_t pc) {
template <typename A>
void DwarfFDECache<A>::add(pint_t mh, pint_t ip_start, pint_t ip_end,
pint_t fde) {
+#if !defined(_LIBUNWIND_NO_HEAP)
_LIBUNWIND_LOG_NON_ZERO(::pthread_rwlock_wrlock(&_lock));
if (_bufferUsed >= _bufferEnd) {
size_t oldSize = (size_t)(_bufferEnd - _buffer);
@@ -139,6 +140,7 @@ void DwarfFDECache<A>::add(pint_t mh, pint_t ip_start, pint_t ip_end,
}
#endif
_LIBUNWIND_LOG_NON_ZERO(::pthread_rwlock_unlock(&_lock));
+#endif
}
template <typename A>
OpenPOWER on IntegriCloud