On Wed, 29 Nov 2023 11:57:37 GMT, Sergey Tsypanov <stsypa...@openjdk.org> wrote:
> It looks like we can skip copying of `byte[]` in > `BufferedInputStream.implTransferTo()` for `OutputStreams` residing in > `java.io`. > > See comment by @vlsi in > https://github.com/openjdk/jdk/pull/10525/files#diff-e19c508d1bb6ee78697ecca66947c395adda0d9c49a85bf696e677ecbd977af1R612 This pull request has now been integrated. Changeset: 38042ad4 Author: Sergey Tsypanov <stsypa...@openjdk.org> Committer: Brian Burkhalter <b...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/38042ad4e9b57d79cd795fd22d31be63924e34c5 Stats: 114 lines in 2 files changed: 111 ins; 0 del; 3 mod 8320971: Use BufferedInputStream.buf directly when param of implTransferTo() is trusted Reviewed-by: alanb, bpb ------------- PR: https://git.openjdk.org/jdk/pull/16879