http://jira.codehaus.org/browse/RVM-51 So the failure is that gtk peers uses an atexit routine. When we call the system call exit this is triggering the atexit routine that is calling JNI methods that can never enter as the system call doesn't transition the virtual processor status from IN_JAVA to IN_NATIVE.
Created attachment 14345 [details] Patch from JikesRVM-51
Created attachment 14346 [details] Patch committed to Classpath
Committed.