Re: JavaMemoryModel: Finalization idioms

From: Sylvia Else (
Date: Sun May 01 2005 - 01:51:28 EDT

>2) Write to a volatile field at the end of ordinary methods,
>and read it first thing in the finalizer.

I don't believe this works in the model as released, because of the absence
of anything that ensures that the read in the finalizer happens-after the
write in the method.


JavaMemoryModel mailing list -

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