setjmp() shares a single jmp_buf across all threads

Adam Megacz
Mon Jan 14 09:24:00 GMT 2002

I figured out why exceptions and threads don't cooperate on win32 --
it seems that a single jmp_buf is being used for all calls to setjmp(),
instead of a different buffer for each thread.

Unfortunately, I can't seem to find where the calls to setjmp() are --
I guess they're not in libjava. Is this one of those things that gcc
handles? If so, can anybody tell me where to start looking?

  - a

More information about the Java mailing list