RFR: 8304745: Lazily initialize byte[] in java.io.BufferedInputStream [v8]
Sergey Tsypanov
stsypanov at openjdk.org
Fri Mar 24 19:30:22 UTC 2023
> By default `BufferedInputStream` is constructed with internal buffer with capacity 8192. In some cases this buffer is never used, e.g. when we call `IS.readNBytes()` or `IS.readAllBytes()` (relying on `BIS.read1()`) or when `BufferedInputStream` is cascaded.
Sergey Tsypanov has updated the pull request incrementally with two additional commits since the last revision:
- Merge remote-tracking branch 'origin/8304745' into 8304745
# Conflicts:
# test/micro/org/openjdk/bench/java/io/BufferedInputStreamBenchmark.java
- 8304745: Fix line breaks
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/13150/files
- new: https://git.openjdk.org/jdk/pull/13150/files/cb426530..783a383b
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=13150&range=07
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=13150&range=06-07
Stats: 67 lines in 1 file changed: 1 ins; 0 del; 66 mod
Patch: https://git.openjdk.org/jdk/pull/13150.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/13150/head:pull/13150
PR: https://git.openjdk.org/jdk/pull/13150
More information about the core-libs-dev
mailing list