From owner-freebsd-hackers@FreeBSD.ORG Wed Jul 12 13:03:11 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1865A16A4DA for ; Wed, 12 Jul 2006 13:03:11 +0000 (UTC) (envelope-from kamalpr@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.183]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6B5EA43D4C for ; Wed, 12 Jul 2006 13:03:10 +0000 (GMT) (envelope-from kamalpr@gmail.com) Received: by py-out-1112.google.com with SMTP id c59so231835pyc for ; Wed, 12 Jul 2006 06:03:09 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=Em29SxAu7dWCuYCYMIiJRtJOEwHFsCbCpp47cyYZmMkVaar1EnmnEGWTorXg4mNlpDtzjEWdLxBOIT8HIkbImzMIaokdlJ9N7VDC35XfZwSIEO3RMOfYoMMmsPIkd7chwvprMjsV4/Gi8x0Zu3pAPhDivHF7i9VGH786oOgg/gg= Received: by 10.35.111.14 with SMTP id o14mr784680pym; Wed, 12 Jul 2006 06:03:09 -0700 (PDT) Received: by 10.35.34.9 with HTTP; Wed, 12 Jul 2006 06:03:09 -0700 (PDT) Message-ID: Date: Wed, 12 Jul 2006 18:33:09 +0530 From: "Kamal R. Prasad" Sender: kamalpr@gmail.com To: freebsd-hackers@freebsd.org In-Reply-To: <20060712113516.GC2162@britannica.bec.de> MIME-Version: 1.0 References: <44B2D2DF.2000401@sh.cvut.cz> <86fyh8zgw8.fsf@xps.des.no> <868xn0z8w9.fsf@xps.des.no> <20060711152949.GB1463@merlin.emma.line.org> <1152642474.29859@origin.intron.ac> <3bbf2fe10607111437h6547432fn2887348708df29a4@mail.gmail.com> <20060712113516.GC2162@britannica.bec.de> X-Google-Sender-Auth: 31e2d612aa466499 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: kern/99979: Get Ready for Kernel Module in C++ X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Jul 2006 13:03:11 -0000 On 7/12/06, Joerg Sonnenberger wrote: > On Tue, Jul 11, 2006 at 11:37:52PM +0200, Attilio Rao wrote: > > Even if I have no proof-of-concepts (so maybe somebody can show that > > this is not fair), if we have setjmp/longjmp in the kernel we can have > > a correct exception handling mechanism without not great problems. > > ROFL. Sorry, but using setjmp/longjmp is one of the worst possible > implementation of exceptions since it is very expensive for the hot > path, where you don't expect exceptions. They are called "exception" for > a reason. so how is exception handling in C++ more efficient than setjmp()/longjmp() -in either paths? thanks -kamal > Joerg > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" >