Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8286763 [REDO] (fc) Tune FileChannel.transferFrom()
  3. JDK-8288250

Release Note: FileChannel.transferFrom May Transfer Fewer Bytes Than Expected

XMLWordPrintable

    • x86_64, aarch64
    • linux

      The performance of `FileChannel.transferFrom()` has been improved significantly on Linux kernel version 4.5 and later for the case where the method is used to transfer bytes from one `FileChannel` to another. This change adds to the preexisting set of scenarios in which the number of bytes actually transferred might be less than the number requested to be transferred. That is to say, the value returned by `transferFrom()` can be less than the value of the `count` parameter: a “short transfer.” This is permitted by the specification, but might impact broken code that ignores the returned count and assumes it is always equal to `count`.

            bpb Brian Burkhalter
            bpb Brian Burkhalter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: