We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87ef7f6 commit 906bb0bCopy full SHA for 906bb0b
1 file changed
src/from_exception.cpp
@@ -21,6 +21,23 @@
21
#if !BOOST_STACKTRACE_ALWAYS_STORE_IN_PADDING
22
#include <mutex>
23
#include <unordered_map>
24
+
25
+#ifndef BOOST_STACKTRACE_LIBCXX_RUNTIME_MAY_CAUSE_MEMORY_LEAK
26
27
+#ifdef BOOST_HAS_THREADS
28
29
+#error On this platform memory leaks are possible if capturing stacktrace from \
30
+ exceptions is enabled and exceptions are thrown concurrently \
31
+ and libc++ runtime is used. \
32
+ \
33
+ Define `BOOST_STACKTRACE_LIBCXX_RUNTIME_MAY_CAUSE_MEMORY_LEAK` to \
34
+ suppress this error if the library would not be used with libc++ \
35
+ runtime (for example, would be used with GCC's runtime).
36
37
+#endif
38
39
40
41
#endif
42
43
namespace {
0 commit comments