Re: JavaMemoryModel: Re: Java Memory Model and exceptions ?

From: Cliff Click (cliff.click@Eng.Sun.COM)
Date: Wed Aug 22 2001 - 12:34:01 EDT


Bill Pugh wrote:

> A related question that I would like some input on from people on the
> list: are Errors guaranteed to be precise? What if the JVM throws an
> InternalError or StackOverflowError? Is it required to be the case that
> there exists some point in the original program such that all writes
> before that point were committed and no writes after that point are
> performed? What implementation strategies do JVMs use to handle this?

Sun's certainly gone to some length to make sure StackOverflowError
appears to be thrown at some particular point. InternalErrors are
never thrown because we don't have recoverable errors; i.e. the VM
crashes instead. :-)

Cliff

-------------------------------
JavaMemoryModel mailing list - http://www.cs.umd.edu/~pugh/java/memoryModel



This archive was generated by hypermail 2b29 : Thu Oct 13 2005 - 07:00:34 EDT