Thanks for the confirmation of these concerns, especially:
Lots of very smart people have spent lots of time looking at this.
There is no way to make it work without requiring each thread that
accesses the helper object to perform synchronization.
Which convinces me that there is no known or easily discoverable
workaround. I'll start moving things to synchronized methods.
-- jt
On Wed, 2002-03-13 at 08:32, Stephane Bailliez wrote:
> > -----Original Message-----
> > From: Pete Kazmier [mailto:[EMAIL PROTECTED]]
> >
> > Does the problem Bloch describes apply here as well?
>
> Yes. For more details look here:
>
> http://www.cs.umd.edu/~pugh/java/memoryModel/
>
> or more precisely for double checked locking
> http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html
>
> Stephane
>
> --
> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>