On Wed, 4 Aug 2021, Martin Storsjö wrote:

> On Tue, 3 Aug 2021, Jeremy Drake wrote:
>
> > While debugging this, noticed ruby seems to make *extensive* use of
> > setjmp/longjmp.  Originally it was trying to use __builtin_setjmp but that
> > was crashing around the setjmp call (maybe clang's __builtin_setjmp wants
> > a different size of jmp_buf?).
>
> FWIW, IIRC, __builtin_setjmp is something entirely different from the regular
> setjmp/longjmp, maybe related to the SJLJ unwind mechanism, i.e. same
> operating principle, but the implementation details are different.
>

That's what I thought, that it was only for internal use of the
compiler/runtime, so I was very surprised to see ruby prefer to use it if
present, rather than the normal library functions.
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to