RFR: 8320971: Use BufferedInputStream.buf directly when param of implTransferTo() is trusted [v9]
Sergey Tsypanov
stsypanov at openjdk.org
Mon Dec 11 13:56:50 UTC 2023
> 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
Sergey Tsypanov has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains 11 additional commits since the last revision:
- Merge branch 'master' into 8320971
- 8320971: Rename method
- 8320971: Extract utility class
- 8320971: Rearrange code
- 8320971: Rewrite comment
- 8320971: Use same approach as BAOS
- Merge branch 'master' into 8320971
- 8320971: Add test
- 8320971: Trust any OutputStream from java.*
- 8320971: Use BufferedInputStream.class.getPackageName()
- ... and 1 more: https://git.openjdk.org/jdk/compare/e1615914...2df52c72
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/16879/files
- new: https://git.openjdk.org/jdk/pull/16879/files/f5cf1346..2df52c72
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=16879&range=08
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=16879&range=07-08
Stats: 11404 lines in 80 files changed: 9535 ins; 1609 del; 260 mod
Patch: https://git.openjdk.org/jdk/pull/16879.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/16879/head:pull/16879
PR: https://git.openjdk.org/jdk/pull/16879
More information about the core-libs-dev
mailing list