-
Enhancement
-
Resolution: Fixed
-
P3
-
None
-
b36
FileInputStream relies on finalization to perform final closes if the FIS is not already closed.
This results in extra work for GC that occurs in a burst. The cleanup of FileInputStreams
should happen sooner and not contribute to overhead in GC.
With PhantomReferences a lightweight cleanup mechanism or other suitable mechanism could be implemented.
This results in extra work for GC that occurs in a burst. The cleanup of FileInputStreams
should happen sooner and not contribute to overhead in GC.
With PhantomReferences a lightweight cleanup mechanism or other suitable mechanism could be implemented.
- csr for
-
JDK-8187325 Relax FileInputStream/FileOutputStream requirement to use finalize
- Closed
- relates to
-
JDK-8194929 Unreferenced FileDescriptors not closed
- Resolved
-
JDK-8187631 Refactor FileDescriptor close implementation
- Resolved
-
JDK-8189330 Cleanup FileDescriptor implementation
- Closed
-
JDK-8071507 (ref) Clear phantom reference as soft and weak references do
- Closed
-
CODETOOLS-7902045 Failed to clean up files after test
- Closed
-
JDK-8253568 Replace and mitigate Object.finalize() uses in JDK libraries
- Open
(2 relates to)