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

Joerg Sonnenberger joerg at britannica.bec.de
Wed Jul 12 11:35:29 UTC 2006


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.

Joerg


More information about the freebsd-hackers mailing list