<div><div>Thanks so much for your answers and suggestions! There is no much comment in libunwind's header. Maybe it would be better to state some assumptions and explanations in the src comments or associated docs?<br></div><div><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>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><br></div></div><div style="font-family: arial; font-size: 14px;"><br></div><div class="protonmail_quote">
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐<br>
On Monday, December 20th, 2021 at 6:53 PM, PoYao Chang <rzhboyao@gmail.com> wrote:<br>
<blockquote class="protonmail_quote" type="cite">
<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" rel="noreferrer nofollow noopener" target="_blank">https://github.com/llvm/llvm-project/commit/1c4867e</a></div></div><div><br><div class="gmail_quote"><div dir="ltr">On Mon, Dec 20, 2021 at 12:37 PM Schrodinger ZHU Yifan via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" rel="noreferrer nofollow noopener" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote 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)" class="gmail_quote"><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 style="font-family:arial" target="_blank" href="https://github.com/jemalloc/jemalloc/issues/585" rel="noreferrer nofollow noopener">https://github.com/jemalloc/jemalloc/issues/585</a> <br></div><div style="font-family:arial;font-size:14px">2. <a style="font-family:arial" target="_blank" href="https://reviews.llvm.org/D9744" rel="noreferrer nofollow noopener">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 target="_blank" href="https://github.com/schrodingerzhu" rel="noreferrer nofollow noopener">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 target="_blank" href="https://protonmail.com/" rel="noreferrer nofollow noopener">ProtonMail</a> Secure Email.</div></div></div><div style="font-family:arial;font-size:14px"><br></div>_______________________________________________<br>
LLVM Developers mailing list<br>
<a target="_blank" href="mailto:llvm-dev@lists.llvm.org" rel="noreferrer nofollow noopener">llvm-dev@lists.llvm.org</a><br>
<a target="_blank" rel="noreferrer nofollow noopener" href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div></div>
</blockquote><br>
</div>