[jmm-dev] ECOOP, JVMLS
Hans Boehm
boehm at acm.org
Mon Aug 4 19:42:05 UTC 2014
That's probably a valid criticism. I did give a 2005(?) JavaOne talk on
the subject, which was attended by about 1000.
There are currently several possible variants of the pattern, all ugly.
One variant is at slide 35 in
http://hboehm.info/misc_slides/java_finalizers.pdf (essentially the slides
from that ancient JavaOne talk, which no longer seem to be available from a
more official site, but were for a number of years).
Hans
On Mon, Aug 4, 2014 at 12:21 PM, Ludwig, Mark <ludwig.mark at siemens.com>
wrote:
> > From: Hans Boehm, Monday, August 04, 2014 2:04 PM
> >
> > We've been telling people since 2005 that
> > you need synchronized(this){} all over the place in code with finalizers,
> > and I have yet to see a single piece of code "in the wild" that actually
> > does this.
>
> How has this message been distributed? (The message certainly
> has not been effectively conveyed....)
>
> What is the pattern, exactly? I assume I don't need a synchronized
> block inside a synchronized method....
>
> Thanks,
> Mark Ludwig
>
>
More information about the jmm-dev
mailing list