Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8080225

FileInput/OutputStream/FileChannel cleanup should be improved

XMLWordPrintable

    • 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.

            rriggs Roger Riggs
            rriggs Roger Riggs
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved: