Finalizer being run while class still in use (escape analysis bug)
David Lloyd
david.lloyd at redhat.com
Wed Oct 10 12:59:53 UTC 2018
On Wed, Oct 10, 2018 at 7:37 AM Andrew Haley <aph at redhat.com> wrote:
> On 10/10/2018 11:22 AM, Luke Hutchison wrote:
> > I don't know what went into the discussion you refer to, but not
> > doing what is arguably "the right thing" in the name of what is
> > probably a tiny performance margin doesn't seem strongly
> > justifiable. I understand your arguments about elision of methods
> > etc., but I really can't believe that a currently running method
> > would not be considered a strong enough reference to "this".
>
> Believe it. It is true.
It helps to think of "this" as being simply an invisible zeroth method
parameter. If you don't refer to a parameter value in the body of a
method, why should the compiler keep it around?
--
- DML
More information about the hotspot-dev
mailing list