RFR JDK-8187485: Update Zip implementation to use Cleaner, not finalizers (original) (raw)
Xueming Shen xueming.shen at oracle.com
Mon Dec 4 23:14:06 UTC 2017
- Previous message: Fwd: Re: RFR 8080225 FileInput/OutputStream/FileChannel cleanup should be improved
- Next message: RFR JDK-8187485: Update Zip implementation to use Cleaner, not finalizers
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi
Please review the revision to the change for
JDK-8187485: Update Zip implementation to use Cleaner, not finalizers
For compatibility with previous jdk releases, in this proposed revision the corresponding close()/end() methods will be called when the ZipFile/Inflater/Deflater object has become unreachable, if the ZipFile/Inflater/Deflater has been subclassed and its close()/end() method has been overridden. In this case, the finalization mechanism is used to clean up the underlying resources. If the ZipFile/Inflater/Deflater has not been subclassed OR the corresponding close()/end() method has not been overridden, then the Cleaner mechanism is used to do the cleanup.
issue: https://bugs.openjdk.java.net/browse/JDK-8185582 webrev: http://cr.openjdk.java.net/~sherman/8185582/webrev csr: https://bugs.openjdk.java.net/browse/JDK-8187485
Thanks, Sherman
- Previous message: Fwd: Re: RFR 8080225 FileInput/OutputStream/FileChannel cleanup should be improved
- Next message: RFR JDK-8187485: Update Zip implementation to use Cleaner, not finalizers
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]