[LLVMdev] longjmp and JIT compiled code on Windows
rnk at google.com
Thu Jul 23 10:24:37 PDT 2015
There's two parts to make this work, and we only have one.
The first part is being able to emit the Win64 call-frame information (CFI)
at all. Normally this is described by .pdata and .xdata sections in your
object file. Today, this all works for ahead-of-time compilations, but not
The second part is, in a JIT context, registering that unwind information
with the operating system (Windows). This would mean calling
RtlInstallFunctionTableCallback, but MCJIT doesn't have any references to
that symbol today.
So we are stuck in the same place. I filed a PR for this, feel free to add
yourself to it:
On Wed, Jul 22, 2015 at 5:53 PM, Dibyendu Majumdar <mobile at majumdar.org.uk>
> In my project I am still getting crashes on Windows - these seem to
> occur intermittently when there is a longjmp that crosses the boundary
> from C code over JITed code. I posted regarding this issue previously:
> I was wondering if the support for stack unwinding on Win64 is now
> improved in LLVM - and if there are any particular guidelines I need
> to follow.
> Thanks and Regards
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev