kern/99979: Get Ready for Kernel Module in C++

Kamal R. Prasad kamalp at acm.org
Wed Jul 12 13:03:11 UTC 2006


On 7/12/06, Joerg Sonnenberger <joerg at britannica.bec.de> 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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
>


More information about the freebsd-hackers mailing list