RFR 9: 8138696 : java.lang.ref.Cleaner (original) (raw)
RFR 9: 8138696 : java.lang.ref.Cleaner - an easy to use alternative to finalization
Chris Hegarty chris.hegarty at oracle.com
Thu Oct 15 13:34:40 UTC 2015
- Previous message: RFR 9: 8138696 : java.lang.ref.Cleaner - an easy to use alternative to finalization
- Next message: RFR 9: 8138696 : java.lang.ref.Cleaner - an easy to use alternative to finalization
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 15 Oct 2015, at 14:21, Roger Riggs <Roger.Riggs at oracle.com> wrote:
...
Also, I've seen a few calls to super.finalize() where there were no finalizers in any of the superclasses. It would be considered good design to always include it. I don't know if the optimization for empty finalize methods includes the case where it only calls super.finalize().
I believe it is only for empty finalize methods.
http://hg.openjdk.java.net/jdk9/jdk9/hotspot/file/tip/src/share/vm/classfile/classFileParser.cpp#l2506 http://hg.openjdk.java.net/jdk9/jdk9/hotspot/file/tip/src/share/vm/classfile/classFileParser.cpp#l4509
-Chris.
- Previous message: RFR 9: 8138696 : java.lang.ref.Cleaner - an easy to use alternative to finalization
- Next message: RFR 9: 8138696 : java.lang.ref.Cleaner - an easy to use alternative to finalization
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]