This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH:throwing exceptions with no memory
Alexandre Oliva wrote:
> following program would deadlock (rather than __terminate()).
>
> You might use the lock just to guard a boolean value that flags
> whether the static location is busy or not. If a thread finds that it
> needs to use the static location and it is busy already, it calls
> terminate.
This is what the patch does :-)
nathan
--
Dr Nathan Sidwell :: Computer Science Department :: Bristol University
You can up the bandwidth, but you can't up the speed of light
nathan@acm.org http://www.cs.bris.ac.uk/~nathan/ nathan@cs.bris.ac.uk