[concurrency-interest] Object finalization

Bob Lee crazybob at crazybob.org
Tue May 15 16:56:48 EDT 2012

On Tue, May 15, 2012 at 1:04 PM, Dr Heinz M. Kabutz <
heinz at javaspecialists.eu> wrote:

> Sure, the fields cannot be null, but would it be possible that they
> have already been finalized?

If they have finalizers themselves, absolutely–it's likely even that their
finalizers would run first. The Garbage Collector would determine that the
SomeService instance, Resource a and Resource b are all unreachable at the
same time and then run their finalizers in an arbitrary order.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cs.oswego.edu/pipermail/concurrency-interest/attachments/20120515/6a7f93b4/attachment.html>

More information about the Concurrency-interest mailing list