This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: setjmp() shares a single jmp_buf across all threads


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]