Re: setjmp/lonjmp (was: vinum warning)

看板DFBSD_kernel作者時間21年前 (2005/02/04 07:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/11 (看更多)
--hEarWVD7htqb1VxP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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@lemis.com for PGP public key. See complete headers for address and phone numbers. --hEarWVD7htqb1VxP Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFCAq4sIubykFB6QiMRAgnYAKCESf50+imZLJnoI3rpyTvthWFaWACgoVik KLvXCWOpvZ6PazZ4t4jGeGo= =OBVa -----END PGP SIGNATURE----- --hEarWVD7htqb1VxP--
文章代碼(AID): #120hHs00 (DFBSD_kernel)
討論串 (同標題文章)
文章代碼(AID): #120hHs00 (DFBSD_kernel)