setjmp() shares a single jmp_buf across all threads
Andrew Haley
aph@cambridge.redhat.com
Mon Jan 14 15:06:00 GMT 2002
Adam Megacz writes:
>
> Andrew Haley <aph@cambridge.redhat.com> writes:
> > Looks like gcc doesn't know about your threads package.
>
> Hrm, I configured with --enable-threads=win32...
>
>
> > Look in gcc/unwind-sjlj.c. See:
> > void _Unwind_SjLj_Register (struct SjLj_Function_Context *fc)
>
> This is completely bizarre; I put an infinite loop at the top of this
> function, yet when I recompile/link/run programs that throw
> exceptions, they don't hang.
I just realized that there's probably a misunderstanding here. It's
not just that one function that needs fixing, but all those in the
file that use thread calls.
Andrew.
More information about the Java
mailing list