[MLton-devel] exceptions

Stephen Weeks MLton@mlton.org
Mon, 6 Jan 2003 15:56:08 -0800

> Apropos the representation of exceptions in Java, in the Java compiler we 
> wrote at NEC, handlers were not kept on the stack at all, but in the code 
> stream along with the gc mask below the return address.  Handlers and gc 
> masks were always at a fixed offset from return addresses, so when an 
> exception was raised it was easy to jump to.  This had the advantage of not 
> having to do any work at runtime to push handlers, with slight complication 
> to code generation. 

Yeah, I am becoming more convinced that this is worth trying in
MLton.  But you guys still had to walk every stack frame from the top
of the stack until you found the top of the exception stack, right?

This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
MLton-devel mailing list