<div dir="auto">Hi,</div><div dir="auto"><br></div><div dir="auto">For your first question, the installation target was added last week:</div><div dir="auto"><div dir="auto"><a href="https://github.com/llvm/llvm-project/commit/1c4867e">https://github.com/llvm/llvm-project/commit/1c4867e</a></div></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Dec 20, 2021 at 12:37 PM Schrodinger ZHU Yifan via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><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" target="_blank" style="font-family:arial">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" target="_blank" style="font-family:arial">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 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 style="font-family:menlo,consolas,"courier new",monospace,sans-serif">s</span> a specialized<span 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><div><div>Schrodinger ZHU Yifan<br></div><div>School of Data Science, CUHK(SZ)<br></div><div><b>Website: <a href="https://github.com/schrodingerzhu" target="_blank">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>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>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div></div>