DragonFly BSD
DragonFly kernel List (threaded) for 2005-02
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: setjmp/lonjmp (was: vinum warning)


From: Joerg Sonnenberger <joerg@xxxxxxxxxxxxxxxxx>
Date: Thu, 3 Feb 2005 23:56:48 +0100
Mail-followup-to: kernel@crater.dragonflybsd.org

On Fri, Feb 04, 2005 at 09:14:25AM +1030, Greg 'groggy' Lehey wrote:
> On Thursday,  3 February 2005 at 23:31:22 +0100, Joerg Sonnenberger wrote:
> >
> > The longjmp debugging is not needed soon, I'm working on removing
> > the use of longjmp completely.
> 
> I'm interested in the general aversion to setjmp()/longjmp().  In my
> opinion they're superior to the alternatives.  What objections do
> people have to them (NIH does count :-).

They destroy the normal flow of code. Even worse, they allow jumping
out of the current flow to a different stack.

Joerg



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]