This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
WHOO! RE: exceptions and threads---a survival tactic!
- To: "'egcs at cygnus dot com'" <egcs at cygnus dot com>
- Subject: WHOO! RE: exceptions and threads---a survival tactic!
- From: Kaz Kylheku <kaz at cafe dot net>
- Date: Thu, 12 Mar 1998 11:18:19 -0800
I stayed home for a while this morning instead of going to work in
order to install the March 8th snapshot with thread-safe exception
handling. (My platform is a dual-pentium Linux system, and I'm using
LinuxThreads.)
Two words: it works!
Six word caveat: as far as I can tell.
I performed a number of tests with a program that would consistenly
core dump without the thread-safe eh, due to concurrent exceptions
triggered by related events. About 10-20% of the trial runs, the program
would not crash, due to a different order of execution of the threads.
I was able to successfully run it about half dozen times without
problem.
I did correctly enable the thread-support; there are unresolved symbols
in libgcc.a to various POSIX threading API functions such as
pthread_setspecific.
:)
Hooray! Good work, people!
What I will try next is compiling a C program and see if it the
linker complains about undefined pthread-related symbols.