<div><div>Hi,<br></div><div style="font-family: arial; font-size: 14px;"><br></div><div style="font-family: arial; font-size: 14px;">These questions were originally posted on Discord but I have got no reply at all so I am writing this email to post the questions to the developer list.<br></div><div style="font-family: arial; font-size: 14px;"><br></div><div style="font-family: arial; font-size: 14px;">Background<br></div><div style="font-family: arial; font-size: 14px;"><br></div><div style="font-family: arial; font-size: 14px;">1.  <a href="https://github.com/jemalloc/jemalloc/issues/585">https://github.com/jemalloc/jemalloc/issues/585</a> <br></div><div style="font-family: arial; font-size: 14px;">2.  <a href="https://reviews.llvm.org/D9744">https://reviews.llvm.org/D9744</a><br></div><div style="font-family: arial; font-size: 14px;">3.  My team was implementing a database and we planned to add a debug tool for memory profiling when jemalloc is enabled. However, nongnu libunwind caused deadlock from time to time when used together with jeprof.<br></div><div style="font-family: arial; font-size: 14px;">4. I am in charge of migrating my team's toolchain from GCC to LLVM; besides clang, we want to make all of our runtimes (except libc, for the time being) in LLVM, including libcxx, omp, compiler-rt, libunwind<br></div><div style="font-family: arial; font-size: 14px;"><br></div><div style="font-family: arial; font-size: 14px;">My problems:<br></div><div style="font-family: arial; font-size: 14px;">1. <span class="font" style="font-family: menlo, consolas, courier new, monospace, sans-serif;">libunwind.h</span> is provided in the LLVM repo, but I am curious that why it is not an installation target. Currently, my solution to vendor a LLVM's header within my team's repo. <br></div><div style="font-family: arial; font-size: 14px;">2. nongnu implementation expose<span class="font" style="font-family: menlo, consolas, courier new, monospace, sans-serif;">s</span> a specialized<span class="font" style="font-family: menlo, consolas, courier new, monospace, sans-serif;"> unw_init_local2 </span>for stack capturing initiated at signal frame, but this function is not provided at LLVM's world. According to the test cases in LLVM's repo, I inferred that LLVM does not need user to specify the signal frame argument. Is this true?<br></div><div style="font-family: arial; font-size: 14px;">3. Is there any previous discussion in LLVM side on the deadlock situation of jemalloc and libunwind?<br></div><div style="font-family: arial; font-size: 14px;"><br></div><div style="font-family: arial; font-size: 14px;">Best wishes.<br></div><div style="font-family: arial; font-size: 14px;"><br></div><div class="protonmail_signature_block"><div class="protonmail_signature_block-user"><div>Schrodinger ZHU Yifan<br></div><div>School of Data Science, CUHK(SZ)<br></div><div><b>Website: <a href="https://github.com/schrodingerzhu">https://github.com/schrodingerzhu</a></b><br></div><div><b>Github:</b> SchrodingerZhu<br></div><div><b>Twitter:</b> ZhuSchrodinger<br></div></div><div><br></div><div class="protonmail_signature_block-proton">Sent with <a rel="noopener noreferrer" href="https://protonmail.com/" target="_blank">ProtonMail</a> Secure Email.</div></div></div><div style="font-family: arial; font-size: 14px;"><br></div>