Re: JavaMemoryModel: Finalizers

From: Joshua Bloch (
Date: Mon Apr 07 2003 - 13:45:27 EDT


> If
> * a field is private or package protected
> * the package is sealed, and
> * there is no read of the field nor reflection in the package
> You know that the field will not be read.

I dunno, seems like a lot of effort for a little benefit and the
resulting behavior seems questionable. I'd put this in the 99% of
optimizations that aren't worth doing (unless someone has proof that
serious performance benefits accrue in a real-world application).


JavaMemoryModel mailing list -

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