RFR 9: 8138696 : java.lang.ref.Cleaner - an easy to use alternative to finalization

Andrew Haley aph at redhat.com
Wed Oct 21 14:45:31 UTC 2015


On 10/21/2015 02:58 PM, Daniel Fuchs wrote:
> I do hope that method parameters are not eagerly gc'ed before
> the method returns

They are -- that's what reachabilityFence() is for.  I don't think
that constructors have any special rules, and nor should they.

Andrew.



More information about the core-libs-dev mailing list