On Wed, 22 Mar 2023 20:34:08 GMT, Sergey Tsypanov <[email protected]> wrote:
> 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. This pull request has now been integrated. Changeset: e52a2aee Author: Sergey Tsypanov <[email protected]> Committer: Jaikiran Pai <[email protected]> URL: https://git.openjdk.org/jdk/commit/e52a2aeeacaeb26c801b6e31f8e67e61b1ea2de3 Stats: 47 lines in 1 file changed: 36 ins; 2 del; 9 mod 8304745: Lazily initialize byte[] in java.io.BufferedInputStream Reviewed-by: liach, bpb, jpai ------------- PR: https://git.openjdk.org/jdk/pull/13150
