implementing escape analysis

Andrew Haley aph@redhat.com
Fri Feb 17 10:28:00 GMT 2006


I wrote:

 > > I remember the weird thing about that paper (it's been a long time
 > > since I read it) is that it didn't talk much about inheritance.  It
 > > seems to me that inheritance is one of the greatest problems for an
 > > object-oriented language...

Really, I wrote these replies too fast.

What I meant to say was: Inheritance is a problem with implementing
escape analysis in any object-oriented language because an object
which might not escape when passed to a method in a class might escape
in an overrridden method in one of its subclasses.  Thus, you need
complete knowledge of all subclasses.

The 'final' qualifier ought to be of use here, but it's not used much
in Java.

Andrew.



More information about the Java mailing list