Skip to content

Commit f813de1

Browse files
committed
jemalloc: use libunwind in profiling
This is a workaround for deadlocks caused by nested unwinding, recommended in jemalloc/jemalloc#2282.
1 parent 451fb6b commit f813de1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

misc/bazel/c_deps/BUILD.jemalloc.bazel

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ CONFIGURE_OPTIONS = [
3737
"--enable-prof",
3838
"--enable-stats",
3939
"--with-malloc-conf=background_thread:true",
40+
# Workaround to avoid deadlocking when jemalloc profiling causes nested
41+
# backtrace collection. See database-issues#9159.
42+
"--enable-prof-libunwind",
4043
]
4144

4245
configure_make(

0 commit comments

Comments
 (0)