setjmp/lonjmp (was: vinum warning)
Greg 'groggy' Lehey
grog at lemis.com
Thu Feb 3 15:09:41 PST 2005
On Thursday, 3 February 2005 at 23:56:48 +0100, Joerg Sonnenberger wrote:
> 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.
For your definition of "normal".
> Even worse, they allow jumping out of the current flow to a
> different stack.
There are plenty of constructs that can be abused. Vinum doesn't do
this.
Greg
--
Finger grog at xxxxxxxxx for PGP public key.
See complete headers for address and phone numbers.
Attachment:
pgp00003.pgp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pgp00003.pgp
Type: application/octet-stream
Size: 187 bytes
Desc: "Description: PGP signature"
URL: <http://lists.dragonflybsd.org/pipermail/kernel/attachments/20050203/3bb4ebc2/attachment-0020.obj>
More information about the Kernel
mailing list