A bug with automatic variables and finally

Gary Howland gary at systemics.com
Thu May 8 09:54:02 PDT 1997


> Why should they?  C++ is not multithreaded.  And variables that live
> across exceptions have to be declared "volatile" (is this correct?). 
> There is no such "volatile" modifier for local variables in Java, resp. 
> every local variable is "volatile". 

There is a "volatile" keyword in Java, but I don't think it does anything
at present.  Perhaps we will have to explicitly use volatile at some point
in the future, allowing compilers to make certain optimisations.

Anyway, this bug is to do with automatic variables, not member variables,
which are less likely to be used by multiple threads.

Gary



More information about the kaffe mailing list