A bug with automatic variables and finally

Gary Howland gary at systemics.com
Sat May 3 09:29:56 PDT 1997


>  > On Thu, 1 May 1997, Robert S. Thau wrote:
>  > 
>  > >   You mean asynchronous like one thread can generate an exception in
>  > >   another?  Given this is the case how the hell do they write an 
>  > >   to be atomic (I think they say they are somewhere)? 
> 
> an "instruction", I assume?  If you're writing an interpreter, it's
> easy; causing an exception consists of setting a bit in the
> interpreter's state for a thread, which the interpreter checks at the
> top of the instruction cycle.

I believe that arithmetic and null pointer exceptions are implemented using
signals, so this may make the "setting a bit" approach a little more difficult.

Gary



More information about the kaffe mailing list