A blog about programming topics, mostly JVM, Linux kernel, and x86 related things.

Tuesday, May 19, 2009

Exception Handling in Jato

As of commit 361b18c ("jit, x86: spill exception object reference at exception handler entry"), Jato is finally able to compile and run the following Java code:


public class Exceptions {
public static void main(String[] args) {
try {
throwException();
} catch (Exception e) {
// System.out.println("Exception caught");
}
}

private static void throwException() {
throw new RuntimeException();
}
}


And yes, if you remove the comments from the S.o.println() call, Jato will crash and burn. :-)

Friday, May 8, 2009

C++0x

C++0x is coming out late this year. Be afraid, be very afraid.