This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: implementing escape analysis
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.