I didn't know UNIX won't allow kernel exception handling. Source?
Of course exceptions are suboptimal; bad performance compared to "goto" can have unintended side effects depending upon the OS (scheduling work may be triggered off of the additional interrupt).
> I didn't know UNIX won't allow kernel exception handling. Source?
My statement was based on ideology as I doubt typical UNIX kernel coders would ever allow for exceptions, given that C does not support them and is against the UNIX way.
> Of course exceptions are suboptimal; bad performance compared to "goto" can have unintended side effects depending upon the OS (scheduling work may be triggered off of the additional interrupt).
Exceptions at the kernel level are possible, Windows does it for certain classes of errors, for example.
Some other commercial or research kernels might do it as well.