harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Wielaard <m...@klomp.org>
Subject Re: Some questions about the architecture
Date Sat, 29 Oct 2005 13:45:25 GMT
Hi Rodrigo,

On Fri, 2005-10-21 at 18:07 -0200, Rodrigo Kumpera wrote:
> What happens when an exception is uncaught is, more or less, the following
> 
> -The exception is passed to the thread's uncaughtExceptionHandler
> -The exception is passed to the ThreadGroup's uncaughtException method
> -The thread is terminated
> -If this was the last non-daemon thread, terminate the JVM.
> 
> It's easy to have this stuff implemented in the class library, and not
> in the runtime, using Java a well smaller code. The class lib just
> make sure that no thread will ever have an uncaught exception of any
> possible kind.
> 
> That's my point, at least.

Correct. There is also the issue of Threads wanting to join() another
Thread. All this can be handled by the core class library. See
java/lang/VMThread.java in vm/reference for a default implementation
that should work with most runtimes.

Cheers,

Mark

-- 
Escape the Java Trap with GNU Classpath!
http://www.gnu.org/philosophy/java-trap.html

Join the community at http://planet.classpath.org/

Mime
View raw message